Skip to main content
POST
/
networks
/
custom
/
creative
Create Custom Creative Setting
curl --request POST \
  --url https://api.eflow.team/v1/networks/custom/creative \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "network_offer_creative_ids": [],
  "network_affiliate_ids": [
    7
  ],
  "name": "Custom Creative Setting",
  "custom_setting_status": "active",
  "creative": {
    "network_offer_id": 1,
    "name": "Banner Ad 300x250",
    "creative_type": "html",
    "is_private": false,
    "creative_status": "active",
    "html_code": "<div>Ad content</div>",
    "width": 300,
    "height": 250,
    "additional_offer_ids": [],
    "is_apply_specific_affiliates": false
  }
}
'
import requests

url = "https://api.eflow.team/v1/networks/custom/creative"

payload = {
"network_offer_creative_ids": [],
"network_affiliate_ids": [7],
"name": "Custom Creative Setting",
"custom_setting_status": "active",
"creative": {
"network_offer_id": 1,
"name": "Banner Ad 300x250",
"creative_type": "html",
"is_private": False,
"creative_status": "active",
"html_code": "<div>Ad content</div>",
"width": 300,
"height": 250,
"additional_offer_ids": [],
"is_apply_specific_affiliates": False
}
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
network_offer_creative_ids: [],
network_affiliate_ids: [7],
name: 'Custom Creative Setting',
custom_setting_status: 'active',
creative: {
network_offer_id: 1,
name: 'Banner Ad 300x250',
creative_type: 'html',
is_private: false,
creative_status: 'active',
html_code: '<div>Ad content</div>',
width: 300,
height: 250,
additional_offer_ids: [],
is_apply_specific_affiliates: false
}
})
};

fetch('https://api.eflow.team/v1/networks/custom/creative', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/networks/custom/creative",
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([
'network_offer_creative_ids' => [

],
'network_affiliate_ids' => [
7
],
'name' => 'Custom Creative Setting',
'custom_setting_status' => 'active',
'creative' => [
'network_offer_id' => 1,
'name' => 'Banner Ad 300x250',
'creative_type' => 'html',
'is_private' => false,
'creative_status' => 'active',
'html_code' => '<div>Ad content</div>',
'width' => 300,
'height' => 250,
'additional_offer_ids' => [

],
'is_apply_specific_affiliates' => false
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);

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

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api.eflow.team/v1/networks/custom/creative"

payload := strings.NewReader("{\n \"network_offer_creative_ids\": [],\n \"network_affiliate_ids\": [\n 7\n ],\n \"name\": \"Custom Creative Setting\",\n \"custom_setting_status\": \"active\",\n \"creative\": {\n \"network_offer_id\": 1,\n \"name\": \"Banner Ad 300x250\",\n \"creative_type\": \"html\",\n \"is_private\": false,\n \"creative_status\": \"active\",\n \"html_code\": \"<div>Ad content</div>\",\n \"width\": 300,\n \"height\": 250,\n \"additional_offer_ids\": [],\n \"is_apply_specific_affiliates\": false\n }\n}")

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

req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/custom/creative")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"network_offer_creative_ids\": [],\n \"network_affiliate_ids\": [\n 7\n ],\n \"name\": \"Custom Creative Setting\",\n \"custom_setting_status\": \"active\",\n \"creative\": {\n \"network_offer_id\": 1,\n \"name\": \"Banner Ad 300x250\",\n \"creative_type\": \"html\",\n \"is_private\": false,\n \"creative_status\": \"active\",\n \"html_code\": \"<div>Ad content</div>\",\n \"width\": 300,\n \"height\": 250,\n \"additional_offer_ids\": [],\n \"is_apply_specific_affiliates\": false\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.eflow.team/v1/networks/custom/creative")

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

request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network_offer_creative_ids\": [],\n \"network_affiliate_ids\": [\n 7\n ],\n \"name\": \"Custom Creative Setting\",\n \"custom_setting_status\": \"active\",\n \"creative\": {\n \"network_offer_id\": 1,\n \"name\": \"Banner Ad 300x250\",\n \"creative_type\": \"html\",\n \"is_private\": false,\n \"creative_status\": \"active\",\n \"html_code\": \"<div>Ad content</div>\",\n \"width\": 300,\n \"height\": 250,\n \"additional_offer_ids\": [],\n \"is_apply_specific_affiliates\": false\n }\n}"

response = http.request(request)
puts response.read_body
{
  "network_custom_creative_setting_id": 123,
  "network_id": 123,
  "network_offer_creative_ids": [
    123
  ],
  "network_affiliate_ids": [
    123
  ],
  "name": "<string>",
  "time_created": 1734455015,
  "time_saved": 1734455015,
  "relationship": {
    "affiliates": [
      {}
    ],
    "creative": {}
  }
}
Create a new custom creative setting. This allows you to assign specific creatives to selected affiliates, overriding the default creative assignments for an offer.

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
network_affiliate_ids
integer[]
required

List of affiliate IDs this setting applies to.

name
string
required

Custom creative setting name.

custom_setting_status
enum<string>
required

Setting status.

Available options:
active,
inactive
creative
object
required

Creative object to create inline. A new creative is always created from this object.

network_offer_creative_ids
integer[]

List of offer creative IDs to assign. When a creative object is provided, the newly created creative's ID will replace the values in this array.

Response

200 - application/json
network_custom_creative_setting_id
integer

Unique custom creative setting ID.

network_id
integer

Network ID.

network_offer_creative_ids
integer[]

List of offer creative IDs assigned.

network_affiliate_ids
integer[]

List of affiliate IDs this setting applies to.

name
string

Custom creative setting name.

custom_setting_status
enum<string>

Setting status.

Available options:
active,
inactive
time_created
integer

Unix timestamp of creation.

Example:

1734455015

time_saved
integer

Unix timestamp of last update.

Example:

1734455015

relationship
object