Skip to main content

budget_allocation

Allocate your budget to your marketing channels using attribution. Budget allocation with an attribution model can be performed with function budget_allocation

Parameters

PARAMETERTYPEDEFAULTDESCRIPTION
tab_attributiondata.framedata.frame containing path-level attribution or channel-level attribution
tab_costsdata.frameNonedata.frame containing the spend for each channel in the time period when customer journeys have been observed. The parameter is optional and can be set to None if spends are not known
tab_indexdata.frameNonedata.frame including importance indices for each channel
total_budget_newdoubleoverall budget you want allocate
perc_realldouble0.1percentage of the overall budget that will be reallocate. (1-perc_reall) is the percentage of the overall budget that will allocated as in the last allocation. Since the allocation algorithm is a local optimization algorithm we suggest allocating a small percentage of the overall budget each time
min_perc_budgetdouble0.01percentage of the overall budget that will be allocated equally through all the channels involved. This avoids that for one or more channels the allocation can be 0
serverstr"app.channelattribution.io"address of the server where password will be checked to authorize the execution of the function
passwordstrNoneuser

Output

OUTPUTTYPEDESCRIPTION
allocationdata.framesuggested budget allocation