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

namespace Google\Ads\GoogleAds\V23\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 conversions for your
 * campaigns while spending your budget.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.AccessibleBiddingStrategy.MaximizeConversions</code>
 */
class MaximizeConversions extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The target cost per acquisition (CPA) option. This is the
     * average amount that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $target_cpa_micros = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $target_cpa_micros
     *           Output only. The target cost per acquisition (CPA) option. This is the
     *           average amount that you would like to spend per acquisition.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\AccessibleBiddingStrategy::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The target cost per acquisition (CPA) option. This is the
     * average amount that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getTargetCpaMicros()
    {
        return $this->target_cpa_micros;
    }

    /**
     * Output only. The target cost per acquisition (CPA) option. This is the
     * average amount that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setTargetCpaMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->target_cpa_micros = $var;

        return $this;
    }

}

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

