CashflowGroup::replaceOfferRevenueGroupsForOffer Method

Sets all the offer revenue groups for an offer, purging any previous groups that were set for the offer, updating
any existing ones which are passed with an id, and creating new ones that lack an id.

NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken StringNetwork token
Target StringThis calls action target
Method StringThis calls action method
offer_id IntegerID of Offer object whose payout groups are being set
offer_revenue_groups_json StringA JSON-encoded array of offer payout groups

Examples of JSON Values

Adding two RPA revenue groups

offer_revenue_groups_json: [{"cashflow_group_id":"51","rate":"150.00"},{"cashflow_group_id":"59","rate":"120.00"}]

Adding two RPS revenue groups

offer_revenue_groups_json: [{"cashflow_group_id":"51","percent":"100.00"},{"cashflow_group_id":"59","percent":"80.00"}]

GET Response Notes

Return response will be in the following format: void.

API Call Builder

Javascript is required to use the API Call Builder.
Have a Question? Please contact [email protected] for technical support.