CashflowGroup::createCashflowGroup Method

Create a Cashflow Group along with constituent Rules and restricting Affiliates.

NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken StringNetwork token
Target StringThis calls action target
Method StringThis calls action method
name StringGroup name
descriptionStringGroup description
affiliate_ids_json StringA JSON-encoded array of affiliate IDs to restrict the group to. Using this format to overcome parameter count limits.
rules_json StringA JSON-encoded array of new Cashflow Rule definitions to create for this group

Examples of JSON values

Matches Aff Sub 2 is AFF_SUB_2_VALUE, for all affiliates

rules_json: [{"field":"aff_sub2","operator":"IN","value":["AFF_SUB_2_VALUE"],"negate":0}]
affiliate_ids_json: NULL

Matches Countries either Germany, Austria, Switzerland, for Affiliates 2, 4 & 6

rules_json: [{"field":"country","operator":"IN","value":["DE", "AT", "CH"],"negate":0}]
affiliate_ids_json: ["2","4","6"]

Matches Aff Sub 2 is AFF_SUB_2_VALUE, does not match Countries Germany, Austria, Switzerland, for Affiliates 2, 4 & 6

rules_json: [{"field":"aff_sub2","operator":"IN","value":["AFF_SUB_2_VALUE"],"negate":0}, {"field":"country","operator":"IN","value":["DE", "AT", "CH"],"negate":1}]
affiliate_ids_json: ["2","4","6"]

Matches advanced_targeting_rule 79, for all affiliates

rules_json: [{"field":"advanced_targeting_rule","operator":"IN","value":[79],"negate":0},]
affiliate_ids_json: NULL

GET Response Notes

Newly created Group ID

Return response will be in the following format: integer.

API Call Builder

Javascript is required to use the API Call Builder.
Have a Question? Please contact support@tune.com for technical support.