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
.
input
Load data from external sources. This can be for example AdWords, Sklik, database, or even more complex logic like URL check.
control
Control statements – currently table deletion and loops over list of managed accounts.
transformations
Transforms tabular data – filtering, aggregation, computation of new columns etc.
persistence
Saving current state. Currently, no steps are implemented.
output
Output 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 name
together with representation of object fromget_label_args()
.