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

namespace Google\Ads\GoogleAds\V23\Resources\Campaign\PmaxCampaignSettings;

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

/**
 * Overrides of brand targeting for various ad types.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Campaign.PmaxCampaignSettings.BrandTargetingOverrides</code>
 */
class BrandTargetingOverrides extends \Google\Protobuf\Internal\Message
{
    /**
     * If true, brand exclusions are ignored for Shopping ads.
     *
     * Generated from protobuf field <code>optional bool ignore_exclusions_for_shopping_ads = 1;</code>
     */
    protected $ignore_exclusions_for_shopping_ads = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $ignore_exclusions_for_shopping_ads
     *           If true, brand exclusions are ignored for Shopping ads.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * If true, brand exclusions are ignored for Shopping ads.
     *
     * Generated from protobuf field <code>optional bool ignore_exclusions_for_shopping_ads = 1;</code>
     * @return bool
     */
    public function getIgnoreExclusionsForShoppingAds()
    {
        return isset($this->ignore_exclusions_for_shopping_ads) ? $this->ignore_exclusions_for_shopping_ads : false;
    }

    public function hasIgnoreExclusionsForShoppingAds()
    {
        return isset($this->ignore_exclusions_for_shopping_ads);
    }

    public function clearIgnoreExclusionsForShoppingAds()
    {
        unset($this->ignore_exclusions_for_shopping_ads);
    }

    /**
     * If true, brand exclusions are ignored for Shopping ads.
     *
     * Generated from protobuf field <code>optional bool ignore_exclusions_for_shopping_ads = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIgnoreExclusionsForShoppingAds($var)
    {
        GPBUtil::checkBool($var);
        $this->ignore_exclusions_for_shopping_ads = $var;

        return $this;
    }

}

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

