private static function newSitelinkFeedItemAddOperation(
        array $sitelinksData,
        $text,
        $finalUrl,
        $line2,
        $line3,
        $restrictToLop = null
    ) {
        // Create the feed item attribute values for our text values.
        $linkTextAttributeValue = new FeedItemAttributeValue();
        $linkTextAttributeValue->setFeedAttributeId(
            $sitelinksData['linkTextFeedAttributeId']
        );
        $linkTextAttributeValue->setStringValue($text);
        $linkFinalUrlAttributeValue = new FeedItemAttributeValue();
        $linkFinalUrlAttributeValue->setFeedAttributeId(
            $sitelinksData['linkFinalUrlFeedAttributeId']
        );
        $linkFinalUrlAttributeValue->setStringValues([$finalUrl]);
        $line2AttributeValue = new FeedItemAttributeValue();
        $line2AttributeValue->setFeedAttributeId(
            $sitelinksData['line2FeedAttribute']
        );
        $line2AttributeValue->setStringValue($line2);
        $line3AttributeValue = new FeedItemAttributeValue();
        $line3AttributeValue->setFeedAttributeId(
            $sitelinksData['line3FeedAttribute']
        );
        $line3AttributeValue->setStringValue($line3);

        // Create the feed item.
        $item = new FeedItem();
        $item->setFeedId($sitelinksData['sitelinksFeedId']);
        $item->setAttributeValues(
            [
                $linkTextAttributeValue,
                $linkFinalUrlAttributeValue,
                $line2AttributeValue,
                $line3AttributeValue
            ]
        );

        // OPTIONAL: Restrict targeting only to people physically within the
        // location.
        if ($restrictToLop === true) {
            $item->setGeoTargetingRestriction(
                new FeedItemGeoRestriction(GeoRestriction::LOCATION_OF_PRESENCE)
            );
        }

        // Create the feed item operation.
        $operation = new FeedItemOperation();
        $operation->setOperand($item);
        $operation->setOperator(Operator::ADD);

        return $operation;
    }