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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * An AdGroup/Campaign pair that could not be used as a suggestion for keywords.
 * AdGroups may not be usable if the AdGroup
 * * belongs to a Campaign that is not ENABLED or PAUSED
 * * is itself not ENABLED
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.UnusableAdGroup</code>
 */
class UnusableAdGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * The AdGroup resource name.
     * Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}`
     *
     * Generated from protobuf field <code>string ad_group = 1;</code>
     */
    protected $ad_group = '';
    /**
     * The Campaign resource name.
     * Resource name format: `customers/{customer_id}/campaigns/{campaign_id}`
     *
     * Generated from protobuf field <code>string campaign = 2;</code>
     */
    protected $campaign = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $ad_group
     *           The AdGroup resource name.
     *           Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}`
     * @type string $campaign
     *           The Campaign resource name.
     *           Resource name format: `customers/{customer_id}/campaigns/{campaign_id}`
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\KeywordPlanIdeaService::initOnce();
        parent::__construct($data);
    }

    /**
     * The AdGroup resource name.
     * Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}`
     *
     * Generated from protobuf field <code>string ad_group = 1;</code>
     *
     * @return string
     */
    public function getAdGroup()
    {
        return $this->ad_group;
    }

    /**
     * The AdGroup resource name.
     * Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}`
     *
     * Generated from protobuf field <code>string ad_group = 1;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setAdGroup($var)
    {
        GPBUtil::checkString($var, true);
        $this->ad_group = $var;

        return $this;
    }

    /**
     * The Campaign resource name.
     * Resource name format: `customers/{customer_id}/campaigns/{campaign_id}`
     *
     * Generated from protobuf field <code>string campaign = 2;</code>
     *
     * @return string
     */
    public function getCampaign()
    {
        return $this->campaign;
    }

    /**
     * The Campaign resource name.
     * Resource name format: `customers/{customer_id}/campaigns/{campaign_id}`
     *
     * Generated from protobuf field <code>string campaign = 2;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setCampaign($var)
    {
        GPBUtil::checkString($var, true);
        $this->campaign = $var;

        return $this;
    }

}

