<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/resources/accessible_bidding_strategy.proto

namespace Google\Ads\GoogleAds\V20\Resources\AccessibleBiddingStrategy;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * An automated bidding strategy to help get the most conversion value for
 * your campaigns while spending your budget.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.AccessibleBiddingStrategy.MaximizeConversionValue</code>
 */
class MaximizeConversionValue extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The target return on ad spend (ROAS) option. If set, the bid
     * strategy will maximize revenue while averaging the target return on ad
     * spend. If the target ROAS is high, the bid strategy may not be able to
     * spend the full budget. If the target ROAS is not set, the bid strategy
     * will aim to achieve the highest possible ROAS for the budget.
     *
     * Generated from protobuf field <code>double target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $target_roas = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $target_roas
     *           Output only. The target return on ad spend (ROAS) option. If set, the bid
     *           strategy will maximize revenue while averaging the target return on ad
     *           spend. If the target ROAS is high, the bid strategy may not be able to
     *           spend the full budget. If the target ROAS is not set, the bid strategy
     *           will aim to achieve the highest possible ROAS for the budget.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\AccessibleBiddingStrategy::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The target return on ad spend (ROAS) option. If set, the bid
     * strategy will maximize revenue while averaging the target return on ad
     * spend. If the target ROAS is high, the bid strategy may not be able to
     * spend the full budget. If the target ROAS is not set, the bid strategy
     * will aim to achieve the highest possible ROAS for the budget.
     *
     * Generated from protobuf field <code>double target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return float
     */
    public function getTargetRoas()
    {
        return $this->target_roas;
    }

    /**
     * Output only. The target return on ad spend (ROAS) option. If set, the bid
     * strategy will maximize revenue while averaging the target return on ad
     * spend. If the target ROAS is high, the bid strategy may not be able to
     * spend the full budget. If the target ROAS is not set, the bid strategy
     * will aim to achieve the highest possible ROAS for the budget.
     *
     * Generated from protobuf field <code>double target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param float $var
     * @return $this
     */
    public function setTargetRoas($var)
    {
        GPBUtil::checkDouble($var);
        $this->target_roas = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaximizeConversionValue::class, \Google\Ads\GoogleAds\V20\Resources\AccessibleBiddingStrategy_MaximizeConversionValue::class);

