Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents



Create a Budget

Required parameters: budget_metric, budget_value, budget_period
Optional parameter: budget_pacing (if you leave blank it defaults to ASAP)
Budget pacing values: "front_loaded" or "even"


Code Block
In [1]: tag = springserve.demand_tags.get(30424)
In [2]: tag.budgets = = {"id":"139151", "budget_value":200}
In [3]: changed =
In [4]: changed.ok
Out [4]: True
In [5]: print tag.budgets
Out [5]:[{u'budget_metric': u'requests',  u'budget_pacing': None,  u'budget_period': u'week',  u'budget_value': 200,  u'id': 139151}]