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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * An automated bidding strategy that sets bids to help get as many clicks
 * as possible at the target cost-per-click (CPC) you set.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.TargetCpc</code>
 */
class TargetCpc extends \Google\Protobuf\Internal\Message
{
    /**
     * Average CPC target.
     * This target should be greater than or equal to minimum billable unit based
     * on the currency for the account.
     *
     * Generated from protobuf field <code>int64 target_cpc_micros = 1;</code>
     */
    protected $target_cpc_micros = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $target_cpc_micros
     *           Average CPC target.
     *           This target should be greater than or equal to minimum billable unit based
     *           on the currency for the account.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Bidding::initOnce();
        parent::__construct($data);
    }

    /**
     * Average CPC target.
     * This target should be greater than or equal to minimum billable unit based
     * on the currency for the account.
     *
     * Generated from protobuf field <code>int64 target_cpc_micros = 1;</code>
     * @return int|string
     */
    public function getTargetCpcMicros()
    {
        return $this->target_cpc_micros;
    }

    /**
     * Average CPC target.
     * This target should be greater than or equal to minimum billable unit based
     * on the currency for the account.
     *
     * Generated from protobuf field <code>int64 target_cpc_micros = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTargetCpcMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->target_cpc_micros = $var;

        return $this;
    }

}

