examples/AdWords/v201809/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php
private static function buildBudgetOperation($namePrefix)
    {
        $budget = new Budget();
        $budget->setBudgetId(--self::$temporaryId);
        $budget->setName('Interplanetary Cruise #' . $namePrefix);
        $budgetAmount = new Money();
        $budgetAmount->setMicroAmount(50000000);
        $budget->setAmount($budgetAmount);
        $budget->setDeliveryMethod(BudgetBudgetDeliveryMethod::STANDARD);

        $budgetOperation = new BudgetOperation();
        $budgetOperation->setOperand($budget);
        $budgetOperation->setOperator(Operator::ADD);

        return $budgetOperation;
    }
private static function buildBudgetOperation($namePrefix)
    {
        $budget = new Budget();
        $budget->setBudgetId(--self::$temporaryId);
        $budget->setName('Interplanetary Cruise #' . $namePrefix);
        $budgetAmount = new Money();
        $budgetAmount->setMicroAmount(50000000);
        $budget->setAmount($budgetAmount);
        $budget->setDeliveryMethod(BudgetBudgetDeliveryMethod::STANDARD);

        $budgetOperation = new BudgetOperation();
        $budgetOperation->setOperand($budget);
        $budgetOperation->setOperator(Operator::ADD);

        return $budgetOperation;
    }
private static function buildBudgetOperation ( $ namePrefix ) { $ budget = new Budget ( ) ; $ budget -> setBudgetId ( -- self :: $ temporaryId ) ; $ budget -> setName ( 'Interplanetary Cruise #' . $ namePrefix ) ; $ budgetAmount = new Money ( ) ; $ budgetAmount -> setMicroAmount ( 50000000 ) ; $ budget -> setAmount ( $ budgetAmount ) ; $ budget -> setDeliveryMethod ( BudgetBudgetDeliveryMethod :: STANDARD ) ; $ budgetOperation = new BudgetOperation ( ) ; $ budgetOperation -> setOperand ( $ budget ) ; $ budgetOperation -> setOperator ( Operator :: ADD ) ; return $ budgetOperation ; }
Builds BudgetOperation for creating a budget.

@param string $namePrefix a prefix string used to name a budget
@return BudgetOperation an object of BudgetOperation
Builds BudgetOperation for creating a budget .