Class BiddingDataExclusion

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.BiddingDataExclusion
All Implemented Interfaces:
BiddingDataExclusionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class BiddingDataExclusion extends com.google.protobuf.GeneratedMessageV3 implements BiddingDataExclusionOrBuilder
 Represents a bidding data exclusion. Bidding data exclusions can be set in
 client accounts only, and cannot be used in manager accounts.

 See "About data exclusions" at
 https://support.google.com/google-ads/answer/10370710.
 
Protobuf type google.ads.googleads.v18.resources.BiddingDataExclusion
See Also:
  • Field Details

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • DATA_EXCLUSION_ID_FIELD_NUMBER

      public static final int DATA_EXCLUSION_ID_FIELD_NUMBER
      See Also:
    • SCOPE_FIELD_NUMBER

      public static final int SCOPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • START_DATE_TIME_FIELD_NUMBER

      public static final int START_DATE_TIME_FIELD_NUMBER
      See Also:
    • END_DATE_TIME_FIELD_NUMBER

      public static final int END_DATE_TIME_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • DEVICES_FIELD_NUMBER

      public static final int DEVICES_FIELD_NUMBER
      See Also:
    • CAMPAIGNS_FIELD_NUMBER

      public static final int CAMPAIGNS_FIELD_NUMBER
      See Also:
    • ADVERTISING_CHANNEL_TYPES_FIELD_NUMBER

      public static final int ADVERTISING_CHANNEL_TYPES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the data exclusion.
       Data exclusion resource names have the form:
      
       `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface BiddingDataExclusionOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the data exclusion.
       Data exclusion resource names have the form:
      
       `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface BiddingDataExclusionOrBuilder
      Returns:
      The bytes for resourceName.
    • getDataExclusionId

      public long getDataExclusionId()
       Output only. The ID of the data exclusion.
       
      int64 data_exclusion_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataExclusionId in interface BiddingDataExclusionOrBuilder
      Returns:
      The dataExclusionId.
    • getScopeValue

      public int getScopeValue()
       The scope of the data exclusion.
       
      .google.ads.googleads.v18.enums.SeasonalityEventScopeEnum.SeasonalityEventScope scope = 3;
      Specified by:
      getScopeValue in interface BiddingDataExclusionOrBuilder
      Returns:
      The enum numeric value on the wire for scope.
    • getScope

       The scope of the data exclusion.
       
      .google.ads.googleads.v18.enums.SeasonalityEventScopeEnum.SeasonalityEventScope scope = 3;
      Specified by:
      getScope in interface BiddingDataExclusionOrBuilder
      Returns:
      The scope.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the data exclusion.
       
      .google.ads.googleads.v18.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BiddingDataExclusionOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

       Output only. The status of the data exclusion.
       
      .google.ads.googleads.v18.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BiddingDataExclusionOrBuilder
      Returns:
      The status.
    • getStartDateTime

      public String getStartDateTime()
       Required. The inclusive start time of the data exclusion in yyyy-MM-dd
       HH:mm:ss format.
      
       A data exclusion is backward looking and should be used for events that
       start in the past and end either in the past or future.
       
      string start_date_time = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartDateTime in interface BiddingDataExclusionOrBuilder
      Returns:
      The startDateTime.
    • getStartDateTimeBytes

      public com.google.protobuf.ByteString getStartDateTimeBytes()
       Required. The inclusive start time of the data exclusion in yyyy-MM-dd
       HH:mm:ss format.
      
       A data exclusion is backward looking and should be used for events that
       start in the past and end either in the past or future.
       
      string start_date_time = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartDateTimeBytes in interface BiddingDataExclusionOrBuilder
      Returns:
      The bytes for startDateTime.
    • getEndDateTime

      public String getEndDateTime()
       Required. The exclusive end time of the data exclusion in yyyy-MM-dd
       HH:mm:ss format.
      
       The length of [start_date_time, end_date_time) interval must be
       within (0, 14 days].
       
      string end_date_time = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndDateTime in interface BiddingDataExclusionOrBuilder
      Returns:
      The endDateTime.
    • getEndDateTimeBytes

      public com.google.protobuf.ByteString getEndDateTimeBytes()
       Required. The exclusive end time of the data exclusion in yyyy-MM-dd
       HH:mm:ss format.
      
       The length of [start_date_time, end_date_time) interval must be
       within (0, 14 days].
       
      string end_date_time = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndDateTimeBytes in interface BiddingDataExclusionOrBuilder
      Returns:
      The bytes for endDateTime.
    • getName

      public String getName()
       The name of the data exclusion. The name can be at most 255
       characters.
       
      string name = 7;
      Specified by:
      getName in interface BiddingDataExclusionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the data exclusion. The name can be at most 255
       characters.
       
      string name = 7;
      Specified by:
      getNameBytes in interface BiddingDataExclusionOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       The description of the data exclusion. The description can be at
       most 2048 characters.
       
      string description = 8;
      Specified by:
      getDescription in interface BiddingDataExclusionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the data exclusion. The description can be at
       most 2048 characters.
       
      string description = 8;
      Specified by:
      getDescriptionBytes in interface BiddingDataExclusionOrBuilder
      Returns:
      The bytes for description.
    • getDevicesList

      public List<DeviceEnum.Device> getDevicesList()
       If not specified, all devices will be included in this exclusion.
       Otherwise, only the specified targeted devices will be included in this
       exclusion.
       
      repeated .google.ads.googleads.v18.enums.DeviceEnum.Device devices = 9;
      Specified by:
      getDevicesList in interface BiddingDataExclusionOrBuilder
      Returns:
      A list containing the devices.
    • getDevicesCount

      public int getDevicesCount()
       If not specified, all devices will be included in this exclusion.
       Otherwise, only the specified targeted devices will be included in this
       exclusion.
       
      repeated .google.ads.googleads.v18.enums.DeviceEnum.Device devices = 9;
      Specified by:
      getDevicesCount in interface BiddingDataExclusionOrBuilder
      Returns:
      The count of devices.
    • getDevices

      public DeviceEnum.Device getDevices(int index)
       If not specified, all devices will be included in this exclusion.
       Otherwise, only the specified targeted devices will be included in this
       exclusion.
       
      repeated .google.ads.googleads.v18.enums.DeviceEnum.Device devices = 9;
      Specified by:
      getDevices in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The devices at the given index.
    • getDevicesValueList

      public List<Integer> getDevicesValueList()
       If not specified, all devices will be included in this exclusion.
       Otherwise, only the specified targeted devices will be included in this
       exclusion.
       
      repeated .google.ads.googleads.v18.enums.DeviceEnum.Device devices = 9;
      Specified by:
      getDevicesValueList in interface BiddingDataExclusionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for devices.
    • getDevicesValue

      public int getDevicesValue(int index)
       If not specified, all devices will be included in this exclusion.
       Otherwise, only the specified targeted devices will be included in this
       exclusion.
       
      repeated .google.ads.googleads.v18.enums.DeviceEnum.Device devices = 9;
      Specified by:
      getDevicesValue in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of devices at the given index.
    • getCampaignsList

      public com.google.protobuf.ProtocolStringList getCampaignsList()
       The data exclusion will apply to the campaigns listed when the scope of
       this exclusion is CAMPAIGN. The maximum number of campaigns per event is
       2000.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated string campaigns = 10 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsList in interface BiddingDataExclusionOrBuilder
      Returns:
      A list containing the campaigns.
    • getCampaignsCount

      public int getCampaignsCount()
       The data exclusion will apply to the campaigns listed when the scope of
       this exclusion is CAMPAIGN. The maximum number of campaigns per event is
       2000.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated string campaigns = 10 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsCount in interface BiddingDataExclusionOrBuilder
      Returns:
      The count of campaigns.
    • getCampaigns

      public String getCampaigns(int index)
       The data exclusion will apply to the campaigns listed when the scope of
       this exclusion is CAMPAIGN. The maximum number of campaigns per event is
       2000.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated string campaigns = 10 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCampaigns in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The campaigns at the given index.
    • getCampaignsBytes

      public com.google.protobuf.ByteString getCampaignsBytes(int index)
       The data exclusion will apply to the campaigns listed when the scope of
       this exclusion is CAMPAIGN. The maximum number of campaigns per event is
       2000.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated string campaigns = 10 [(.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignsBytes in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the campaigns at the given index.
    • getAdvertisingChannelTypesList

      public List<AdvertisingChannelTypeEnum.AdvertisingChannelType> getAdvertisingChannelTypesList()
       The data_exclusion will apply to all the campaigns under the listed
       channels retroactively as well as going forward when the scope of this
       exclusion is CHANNEL.
       The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
      Specified by:
      getAdvertisingChannelTypesList in interface BiddingDataExclusionOrBuilder
      Returns:
      A list containing the advertisingChannelTypes.
    • getAdvertisingChannelTypesCount

      public int getAdvertisingChannelTypesCount()
       The data_exclusion will apply to all the campaigns under the listed
       channels retroactively as well as going forward when the scope of this
       exclusion is CHANNEL.
       The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
      Specified by:
      getAdvertisingChannelTypesCount in interface BiddingDataExclusionOrBuilder
      Returns:
      The count of advertisingChannelTypes.
    • getAdvertisingChannelTypes

      public AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelTypes(int index)
       The data_exclusion will apply to all the campaigns under the listed
       channels retroactively as well as going forward when the scope of this
       exclusion is CHANNEL.
       The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
      Specified by:
      getAdvertisingChannelTypes in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The advertisingChannelTypes at the given index.
    • getAdvertisingChannelTypesValueList

      public List<Integer> getAdvertisingChannelTypesValueList()
       The data_exclusion will apply to all the campaigns under the listed
       channels retroactively as well as going forward when the scope of this
       exclusion is CHANNEL.
       The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
      Specified by:
      getAdvertisingChannelTypesValueList in interface BiddingDataExclusionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for advertisingChannelTypes.
    • getAdvertisingChannelTypesValue

      public int getAdvertisingChannelTypesValue(int index)
       The data_exclusion will apply to all the campaigns under the listed
       channels retroactively as well as going forward when the scope of this
       exclusion is CHANNEL.
       The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
       Note: a data exclusion with both advertising_channel_types and
       campaign_ids is not supported.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
      Specified by:
      getAdvertisingChannelTypesValue in interface BiddingDataExclusionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of advertisingChannelTypes at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BiddingDataExclusion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BiddingDataExclusion parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BiddingDataExclusion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BiddingDataExclusion parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BiddingDataExclusion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BiddingDataExclusion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BiddingDataExclusion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BiddingDataExclusion.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BiddingDataExclusion.Builder newBuilder()
    • newBuilder

      public static BiddingDataExclusion.Builder newBuilder(BiddingDataExclusion prototype)
    • toBuilder

      public BiddingDataExclusion.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BiddingDataExclusion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static BiddingDataExclusion getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BiddingDataExclusion> parser()
    • getParserForType

      public com.google.protobuf.Parser<BiddingDataExclusion> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public BiddingDataExclusion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder