Custom Scrub Rates (Throttle)
Find Custom Scrub Rate (Throttle) Settings
/v1/networks/custom/scrubratetable
This endpoint allows to fetch custom scrub rate (throttle) settings. Different filters can be used to narrow down the set of settings returned by the endpoint. You can, for example, use the filters to return only the settings associated with a specific affiliate ID.
Note that this endpoint does not return every detail of each custom scrub rate (throttle) setting. For example it will not return the specific variables associate with a setting (if specified). To get those, use the Find by ID endpoint documented below.
Paging
This endpoint supports paging. Refer to our User Guide for usage.
Body Params
Search terms are optional but can be used to look for specific words.
The name of the field used for search. Can be name
, offer
or affiliate
The value to search.
Filters are also completely optional but are usually used to narrow down the set of settings returned. They can be used individually or combined in a single request.
Filter on the status of the custom scrub rate (throttle) setting. Possible values are active
or inactive
Return only the settings associated with the specified affiliate IDs.
Return only the settings associated with the specified offer IDs.
Filter on how the setting affects the conversions it targets. Possible values are pending
and rejected
Request Examples
cURL
curl --request POST 'https://api.eflow.team/v1/networks/custom/scrubratetable' \
--header 'X-Eflow-API-Key: <INSERT API KEY>' \
--header 'Content-Type: application/json' \
--data '<INSERT BODY HERE>'
Example 1 : Find all active custom scrub rate (throttle) settings
{
"search_terms": [],
"filters":
{
"custom_setting_status": "active"
}
}
Example 2 : Find all active custom scrub rate (throttle) settings that affect affiliate ID 7 and that contain the word “summer”
{
"search_terms":
[
{
"search_type": "name",
"value": "summer"
}
],
"filters":
{
"custom_setting_status": "active",
"network_affiliate_ids": [ 7 ]
}
}
Response
{
"custom_scrub_rate_settings":
[
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Custom Scrub Example",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 20,
"time_created": 1684245710,
"time_saved": 1684245752,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 7,
"network_id": 1,
"name": "Example Affiliate Inc.",
"account_status": "active"
},
"offer":
{
"network_offer_id": 8,
"network_id": 1,
"network_advertiser_id": 13,
"network_offer_group_id": 0,
"name": "Example offer with custom scrub",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "public",
"currency_id": "USD"
},
"ruleset":
{
"network_id": 1,
"network_ruleset_id": 71,
"time_created": 1684245752,
"time_saved": 1684245752,
"platforms": [],
"device_types": [],
"os_versions": [],
"browsers": [],
"languages": [],
"countries": [],
"regions": [],
"cities": [],
"dmas": [],
"mobile_carriers": [],
"connection_types": [],
"ips": [],
"is_block_proxy": false,
"is_use_day_parting": false,
"day_parting_apply_to": "user_timezone",
"day_parting_timezone_id": 0,
"days_parting": [ ],
"isps": [],
"brands": [],
"postal_codes": []
}
}
}
],
"paging":
{
"page": 1,
"page_size": 100,
"total_count": 1
}
}
Find By ID
/v1/networks/custom/scrubrate/:settingId
Path Parameters
Parameter | Description |
---|---|
settingId | The ID of the custom scrub rate (throttle) setting |
Relationships
This endpoint supports the following additional relationships. Refer to our User Guide for usage.
Value | Description |
---|---|
variables | Include the variables the setting affects (if any) |
targeting | Includes the setting’s sepcific targeting settings (if any) |
Request Example
cURL
curl --request GET --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
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Example Custom Scrub Setting",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 25,
"time_created": 1684245710,
"time_saved": 1684261331,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 7,
"network_id": 1,
"name": "Example Affiliate Inc.",
"account_status": "active",
"network_employee_id": 1,
"internal_notes": "",
"has_notifications": false,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "USD",
"is_contact_address_enabled": false,
"enable_media_cost_tracking_links": true,
"time_created": 1683039591,
"time_saved": 1683750489,
"referrer_id": 0
},
"offer":
{
"network_offer_id": 8,
"network_id": 1,
"network_advertiser_id": 13,
"network_offer_group_id": 0,
"name": "Example offer with scrub setting",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "public",
"currency_id": "USD"
},
"ruleset":
{
"network_id": 1,
"network_ruleset_id": 72,
"time_created": 1684261331,
"time_saved": 1684261331,
"platforms": [],
"device_types": [],
"os_versions": [],
"browsers": [],
"languages": [],
"countries":
[
{
"network_id": 1,
"network_targeting_country_id": 17,
"country_id": 227,
"label": "United States",
"country_code": "US",
"targeting_type": "include",
"match_type": "exact"
}
],
"regions": [],
"cities": [],
"dmas": [],
"mobile_carriers": [],
"connection_types": [],
"ips": [],
"is_block_proxy": false,
"is_use_day_parting": false,
"day_parting_apply_to": "user_timezone",
"day_parting_timezone_id": 0,
"days_parting": [],
"isps": [],
"brands": [],
"postal_codes": []
},
"variables":
{
"total": 1,
"entries":
[
{
"network_custom_scrub_rate_setting_variable_id": 4,
"network_custom_scrub_rate_setting_id": 4,
"comparison_method": "exact_match",
"variable": "sub1",
"variable_value": "bad_source"
}
]
}
}
}
Create
Create a custom scrub rate (throttle) setting associated with a partner / offer couple.
/v1/networks/custom/scrubrate
Body Params
The affiliate id.
The offer id.
The custom setting status. Can be either active
or inactive
The custom cap setting name.
The scrub rate status. Can be one of the following values: rejected
or pending
The scrub rate percentage (this is the percentage of conversion that will be affected by the setting). Note that if you specify e.g. 25%, it means that each conversion has a 25% chance of being scrubbed, not necessarily that exactly 25% will be scrubbed (although with a big enough quantity it will be the case).
Optional list of variables that must match for the setting to apply
The type of comparison to use. Can be one of the following values: begins_with
, ends_with
, exact_match
, contains
The scrub rate variable. Can be sub1
, sub2
, sub3
, sub4
, sub5
and source_id
The value to use for comparison.
Optional additional targeting rules for determining when the setting is used. See the ruleset object.
Payload Example
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Custom Scrub Setting",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 25,
"time_created": 1684245710,
"time_saved": 1684261331,
"variables":
[
{
"network_custom_scrub_rate_setting_variable_id": 4,
"network_custom_scrub_rate_setting_id": 4,
"comparison_method": "exact_match",
"variable": "sub1",
"variable_value": "bad_source"
}
]
}
Request Example
cURL
curl --request POST \
--url 'https://api.eflow.team/v1/networks/custom/scrubrate' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Custom Scrub Rate Exmple",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 25,
"time_created": 1684245710,
"time_saved": 1684263714,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 7,
"network_id": 1,
"name": "Example Affiliate Inc.",
"account_status": "active",
"network_employee_id": 1,
"internal_notes": "",
"has_notifications": false,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "USD",
"is_contact_address_enabled": false,
"enable_media_cost_tracking_links": true,
"time_created": 1683039591,
"time_saved": 1683750489,
"referrer_id": 0
},
"offer":
{
"network_offer_id": 8,
"network_id": 1,
"network_advertiser_id": 13,
"network_offer_group_id": 0,
"name": "Example Offer With Scrub",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "public",
"currency_id": "USD"
}
}
}
Update
Update an existing custom scrub rate (throttle) setting.
/v1/networks/custom/scrubrate/:settingId
Body Params
The affiliate id.
The offer id.
The custom setting status. Can be either active
or inactive
The custom cap setting name.
The scrub rate status. Can be one of the following values: rejected
or pending
The scrub rate percentage (this is the percentage of conversion that will be affected by the setting). Note that if you specify e.g. 25%, it means that each conversion has a 25% chance of being scrubbed, not necessarily that exactly 25% will be scrubbed (although with a big enough quantity it will be the case).
Optional list of variables that must match for the setting to apply
The type of comparison to use. Can be one of the following values: begins_with
, ends_with
, exact_match
, contains
The scrub rate variable. Can be sub1
, sub2
, sub3
, sub4
, sub5
and source_id
The value to use for comparison.
Optional additional targeting rules for determining when the setting is used. See the ruleset object.
Payload Example
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Updated Custom Scrub Setting",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 30,
"time_created": 1684245710,
"time_saved": 1684261331,
"variables":
[
{
"network_custom_scrub_rate_setting_variable_id": 4,
"network_custom_scrub_rate_setting_id": 4,
"comparison_method": "exact_match",
"variable": "sub1",
"variable_value": "updated_bad_source"
}
]
}
Request Example
cURL
curl --request POST \
--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' \
--data '<INSERT PAYLOAD>'
Response
{
"network_custom_scrub_rate_setting_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_offer_id": 8,
"custom_setting_status": "active",
"name": "Custom Scrub Rate Exmple",
"scrub_rate_status": "pending",
"scrub_rate_percentage": 25,
"time_created": 1684245710,
"time_saved": 1684263714,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 7,
"network_id": 1,
"name": "Example Affiliate Inc.",
"account_status": "active",
"network_employee_id": 1,
"internal_notes": "",
"has_notifications": false,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "USD",
"is_contact_address_enabled": false,
"enable_media_cost_tracking_links": true,
"time_created": 1683039591,
"time_saved": 1683750489,
"referrer_id": 0
},
"offer":
{
"network_offer_id": 8,
"network_id": 1,
"network_advertiser_id": 13,
"network_offer_group_id": 0,
"name": "Example Offer With Scrub",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "public",
"currency_id": "USD"
}
}
}
Delete
Delete an existing custom scrub rate (throttle) setting.
/v1/networks/custom/scrubrate/: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
}