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

namespace Google\Ads\GoogleAds\V24\Resources\Campaign;

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

/**
 * Campaign-level settings for tracking information.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Campaign.TrackingSetting</code>
 */
class TrackingSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The url used for dynamic tracking.
     *
     * Generated from protobuf field <code>optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $tracking_url = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $tracking_url
     *           Output only. The url used for dynamic tracking.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The url used for dynamic tracking.
     *
     * Generated from protobuf field <code>optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getTrackingUrl()
    {
        return isset($this->tracking_url) ? $this->tracking_url : '';
    }

    public function hasTrackingUrl()
    {
        return isset($this->tracking_url);
    }

    public function clearTrackingUrl()
    {
        unset($this->tracking_url);
    }

    /**
     * Output only. The url used for dynamic tracking.
     *
     * Generated from protobuf field <code>optional string tracking_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setTrackingUrl($var)
    {
        GPBUtil::checkString($var, true);
        $this->tracking_url = $var;

        return $this;
    }

}

