class Google::Apis::DfareportingV2_1::EventTag

Contains properties of an event tag.

Attributes

account_id[RW]

Account ID of this event tag. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [String]

advertiser_id[RW]

Advertiser ID of this event tag. This field or the campaignId field is required on insertion. Corresponds to the JSON property `advertiserId` @return [String]

advertiser_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]

campaign_id[RW]

Campaign ID of this event tag. This field or the advertiserId field is required on insertion. Corresponds to the JSON property `campaignId` @return [String]

campaign_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `campaignIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]

enabled_by_default[RW]

Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads. Corresponds to the JSON property `enabledByDefault` @return [Boolean]

enabled_by_default?[RW]

Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads. Corresponds to the JSON property `enabledByDefault` @return [Boolean]

id[RW]

ID of this event tag. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#eventTag”. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of this event tag. This is a required field and must be less than 256 characters long. Corresponds to the JSON property `name` @return [String]

site_filter_type[RW]

Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites. Corresponds to the JSON property `siteFilterType` @return [String]

site_ids[RW]

Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a whitelist or blacklist filter. Corresponds to the JSON property `siteIds` @return [Array<String>]

ssl_compliant[RW]

Whether this tag is SSL-compliant or not. This is a read-only field. Corresponds to the JSON property `sslCompliant` @return [Boolean]

ssl_compliant?[RW]

Whether this tag is SSL-compliant or not. This is a read-only field. Corresponds to the JSON property `sslCompliant` @return [Boolean]

status[RW]

Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field. Corresponds to the JSON property `status` @return [String]

subaccount_id[RW]

Subaccount ID of this event tag. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [String]

type[RW]

Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field. Corresponds to the JSON property `type` @return [String]

url[RW]

Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion. Corresponds to the JSON property `url` @return [String]

url_escape_levels[RW]

Number of times the landing page URL should be URL-escaped before being appended to the click-through event tag URL. Only applies to click-through event tags as specified by the event tag type. Corresponds to the JSON property `urlEscapeLevels` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 4772
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 4777
def update!(**args)
  @account_id = args[:account_id] unless args[:account_id].nil?
  @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil?
  @campaign_id = args[:campaign_id] unless args[:campaign_id].nil?
  @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil?
  @enabled_by_default = args[:enabled_by_default] unless args[:enabled_by_default].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @name = args[:name] unless args[:name].nil?
  @site_filter_type = args[:site_filter_type] unless args[:site_filter_type].nil?
  @site_ids = args[:site_ids] unless args[:site_ids].nil?
  @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil?
  @status = args[:status] unless args[:status].nil?
  @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil?
  @type = args[:type] unless args[:type].nil?
  @url = args[:url] unless args[:url].nil?
  @url_escape_levels = args[:url_escape_levels] unless args[:url_escape_levels].nil?
end