examples/AdWords/v201809/Optimization/EstimateKeywordTraffic.php
private static function calculateMeanMicroAmount($min, $max)
    {
        if ($min === null || $max === null) {
            return null;
        }
        if ($min->getMicroAmount() === null
            || $max->getMicroAmount() === null) {
            return null;
        }

        return ($min->getMicroAmount() + $max->getMicroAmount()) / 2;
    }
private static function calculateMeanMicroAmount($min, $max)
    {
        if ($min === null || $max === null) {
            return null;
        }
        if ($min->getMicroAmount() === null
            || $max->getMicroAmount() === null) {
            return null;
        }

        return ($min->getMicroAmount() + $max->getMicroAmount()) / 2;
    }
private static function calculateMeanMicroAmount ( $ min , $ max ) { if ( $ min === null || $ max === null ) { return null ; } if ( $ min -> getMicroAmount ( ) === null || $ max -> getMicroAmount ( ) === null ) { return null ; } return ( $ min -> getMicroAmount ( ) + $ max -> getMicroAmount ( ) ) / 2 ; }
Returns the mean of the two object's microAmounts if neither is null, else
returns null.
Returns the mean of the two object s microAmounts if neither is null else returns null .