Custom Creatives
Find All
/v1/networks/custom/creative
Filters
This endpoint supports basic filtering. Refer to API filters page for usage.
Value | Description |
---|---|
custom_setting_status | Filter based on the custom setting status |
time_created | Filter based on the creation time |
time_saved | Filter based on the last update time |
Request Example
cURL
curl --request GET \
--url 'https://api.eflow.team/v1/networks/custom/creative' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json'
Response
{
"custom_creative_settings": [
{
"network_custom_creative_setting_id": 0,
"network_id": 0,
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"time_created": 0,
"time_saved": 0,
"relationship": {
"affiliates": [
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "",
"account_status": "active",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": true,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 0,
"referrer_id": 0
}
],
"creative": {
"network_offer_creative_id": 0,
"network_id": 0,
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"resource_url": "",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"time_created": 0,
"time_saved": 0,
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true
}
}
}
]
}
Find By ID
/v1/networks/custom/creative/:settingId
Path Parameters
Parameter | Description |
---|---|
settingId | The ID of a network custom setting |
Request Example
cURL
curl --request GET --url 'https://api.eflow.team/v1/networks/custom/creative/<INSERT SETTING ID>' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json'
Response
{
"network_custom_creative_setting_id": 0,
"network_id": 0,
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"time_created": 0,
"time_saved": 0,
"relationship": {
"affiliates": [
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "",
"account_status": "active",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": true,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 0,
"referrer_id": 0
}
],
"creative": {
"network_offer_creative_id": 0,
"network_id": 0,
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"resource_url": "",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"time_created": 0,
"time_saved": 0,
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true
}
}
}
Create
/v1/networks/custom/creative
Body Params
The offer id.
The custom setting status. Can be either active
or inactive
The custom cap setting name.
Only required when you create a new creative on its own (not part of an offer creation).
Allowed values: image
, html
, thumbnail
, email
, archive
, video
, text
.
Allowed values: active
, deleted
.
Only required when creative_type
is ‘html’ or ‘email’.
Only required when creative_type
is ‘html’.
Only required when creative_type
is ‘html’.
Only required when creative_type
is ‘email’.
Only required when creative_type
is ‘email’.
Payload Example
{
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"creative": {
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true,
"resource_file": {
"temp_url": "",
"original_file_name": ""
},
"html_files": [
{
"temp_url": "",
"original_file_name": ""
}
],
"html_assets": [
{
"content_type": "",
"filename": "",
"url": "",
"file_size": 0,
"image_width": 0,
"image_height": 0
}
]
}
}
Request Example
cURL
curl --request POST \
--url 'https://api.eflow.team/v1/networks/custom/creative' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"network_custom_creative_setting_id": 0,
"network_id": 0,
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"time_created": 0,
"time_saved": 0,
"relationship": {
"affiliates": [
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "",
"account_status": "active",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": true,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 0,
"referrer_id": 0
}
],
"creative": {
"network_offer_creative_id": 0,
"network_id": 0,
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"resource_url": "",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"time_created": 0,
"time_saved": 0,
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true
}
}
}
Update
/v1/networks/custom/creative/:settingId
Body Params
The offer id.
The custom setting status. Can be either active
or inactive
The custom cap setting name.
Only required when you create a new creative on its own (not part of an offer creation).
Allowed values: image
, html
, thumbnail
, email
, archive
, video
, text
.
Allowed values: active
, deleted
.
Only required when creative_type
is ‘html’ or ‘email’.
Only required when creative_type
is ‘html’.
Only required when creative_type
is ‘html’.
Only required when creative_type
is ‘email’.
Only required when creative_type
is ‘email’.
Payload Example
{
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"creative": {
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true,
"resource_file": {
"temp_url": "",
"original_file_name": ""
},
"html_files": [
{
"temp_url": "",
"original_file_name": ""
}
],
"html_assets": [
{
"content_type": "",
"filename": "",
"url": "",
"file_size": 0,
"image_width": 0,
"image_height": 0
}
]
}
}
Request Example
cURL
curl --request POST \
--url 'https://api.eflow.team/v1/networks/custom/creative/<INSERT SETTING ID>' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"network_custom_creative_setting_id": 0,
"network_id": 0,
"network_offer_creative_ids": [
0
],
"network_affiliate_ids": [
0
],
"name": "",
"custom_setting_status": "active",
"time_created": 0,
"time_saved": 0,
"relationship": {
"affiliates": [
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "",
"account_status": "active",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": true,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 0,
"referrer_id": 0
}
],
"creative": {
"network_offer_creative_id": 0,
"network_id": 0,
"network_offer_id": 0,
"name": "",
"creative_type": "image",
"is_private": true,
"creative_status": "active",
"resource_url": "",
"html_code": "",
"width": 0,
"height": 0,
"email_from": "",
"email_subject": "",
"time_created": 0,
"time_saved": 0,
"additional_offer_ids": [
0
],
"is_apply_specific_affiliates": true
}
}
}
Delete
/v1/networks/custom/creative/:settingId
Path Parameters
Parameter | Description |
---|---|
settingId | The ID of a network custom setting |
Request Example
cURL
curl --request DELETE \
--url 'https://api.eflow.team/v1/networks/custom/scrubrate/<INSERT SETTING ID>' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
Response
{
"result": true
}
Patch
/v1/networks/custom/creative
Body Params
List of network custom scrub rate setting ids separated by comas.
Allowed values: active
, inactive
.
Payload Example
{
"custom_creative_setting_ids": [
0
],
"status": "active"
}
Request Example
cURL
curl --request PATCH \
--url 'https://api.eflow.team/v1/networks/custom/creative' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"result": true
}