Steps for Executing Reports
Steps that are used to execute reports are divided into 5 categories. Each of these categories is available
as a submodule of ppc_robot_lib.steps.
inputLoad data from external sources. This can be for example AdWords, Sklik, database, or even more complex logic like URL check.
controlControl statements – currently table deletion and loops over list of managed accounts.
transformationsTransforms tabular data – filtering, aggregation, computation of new columns etc.
persistenceSaving current state. Currently, no steps are implemented.
outputOutput data to Google Spreadsheets. More output options are to come.
AbstractStep
Each step must implement the ppc_robot_lib.steps.abstract_step.AbstractStep class.
- class AbstractStep[source]
Abstract base class for all steps. Each step is required to implement at least the execute method.
Each step should also add its own properties, which represents parameters of the step.
- abstract execute(task_ctx)[source]
Executes the logic of the step. Must be implemented in subclasses. :type task_ctx:
TaskContextInterface:param task_ctx: Task context which contains account credentials.- Return type:
StepPerformance|None
- get_label()[source]
- Returns:
Label describing the step. The default implementation returns
step nametogether with representation of object fromget_label_args().