private static function buildAdGroupOperations(
        $namePrefix,
        array $campaignOperations
    ) {
        $operations = [];
        foreach ($campaignOperations as $campaignOperation) {
            for ($i = 0; $i < self::NUMBER_OF_ADGROUPS_TO_ADD; $i++) {
                $adGroup = new AdGroup();
                $adGroup->setCampaignId($campaignOperation->getOperand()->getId());
                $adGroup->setId(--self::$temporaryId);
                $adGroup->setName(
                    sprintf(
                        'Batch Ad Group %s.%s',
                        $namePrefix,
                        strval($adGroup->getId())
                    )
                );

                $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
                $money = new Money();
                $money->setMicroAmount(10000000);
                $bid = new CpcBid();
                $bid->setBid($money);
                $biddingStrategyConfiguration->setBids([$bid]);

                $adGroup->setBiddingStrategyConfiguration(
                    $biddingStrategyConfiguration
                );

                $operation = new AdGroupOperation();
                $operation->setOperand($adGroup);
                $operation->setOperator(Operator::ADD);

                $operations[] = $operation;
            }
        }

        return $operations;
    }