Class: Google::Apis::DfareportingV2_1::Advertiser

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb

Overview

Contains properties of a DCM advertiser.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Advertiser

Returns a new instance of Advertiser



1085
1086
1087
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1085

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idString

Account ID of this advertiser.This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (String)


998
999
1000
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 998

def 
  @account_id
end

#advertiser_group_idString

ID of the advertiser group this advertiser belongs to. You can group advertisers for reporting purposes, allowing you to see aggregated information for all advertisers in each group. Corresponds to the JSON property advertiserGroupId

Returns:

  • (String)


1005
1006
1007
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1005

def advertiser_group_id
  @advertiser_group_id
end

#click_through_url_suffixString

Suffix added to click-through URL of ad creative associations under this advertiser. Must be less than 129 characters long. Corresponds to the JSON property clickThroughUrlSuffix

Returns:

  • (String)


1011
1012
1013
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1011

def click_through_url_suffix
  @click_through_url_suffix
end

#default_click_through_event_tag_idString

ID of the click-through event tag to apply by default to the landing pages of this advertiser's campaigns. Corresponds to the JSON property defaultClickThroughEventTagId

Returns:

  • (String)


1017
1018
1019
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1017

def default_click_through_event_tag_id
  @default_click_through_event_tag_id
end

#default_emailString

Default email address used in sender field for tag emails. Corresponds to the JSON property defaultEmail

Returns:

  • (String)


1022
1023
1024
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1022

def default_email
  @default_email
end

#floodlight_configuration_idString

Floodlight configuration ID of this advertiser. The floodlight configuration ID will be created automatically, so on insert this field should be left blank. This field can be set to another advertiser's floodlight configuration ID in order to share that advertiser's floodlight configuration with this advertiser, so long as:

  • This advertiser's original floodlight configuration is not already associated with floodlight activities or floodlight activity groups.
  • This advertiser's original floodlight configuration is not already shared with another advertiser. Corresponds to the JSON property floodlightConfigurationId

Returns:

  • (String)


1035
1036
1037
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1035

def floodlight_configuration_id
  @floodlight_configuration_id
end

#floodlight_configuration_id_dimension_valueGoogle::Apis::DfareportingV2_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property floodlightConfigurationIdDimensionValue



1040
1041
1042
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1040

def floodlight_configuration_id_dimension_value
  @floodlight_configuration_id_dimension_value
end

#idString

ID of this advertiser. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (String)


1045
1046
1047
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1045

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV2_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



1050
1051
1052
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1050

def id_dimension_value
  @id_dimension_value
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#advertiser". Corresponds to the JSON property kind

Returns:

  • (String)


1056
1057
1058
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1056

def kind
  @kind
end

#nameString

Name of this advertiser. This is a required field and must be less than 256 characters long and unique among advertisers of the same account. Corresponds to the JSON property name

Returns:

  • (String)


1062
1063
1064
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1062

def name
  @name
end

#original_floodlight_configuration_idString

Original floodlight configuration before any sharing occurred. Set the floodlightConfigurationId of this advertiser to originalFloodlightConfigurationId to unshare the advertiser's current floodlight configuration. You cannot unshare an advertiser's floodlight configuration if the shared configuration has activities associated with any campaign or placement. Corresponds to the JSON property originalFloodlightConfigurationId

Returns:

  • (String)


1072
1073
1074
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1072

def original_floodlight_configuration_id
  @original_floodlight_configuration_id
end

#statusString

Status of this advertiser. Corresponds to the JSON property status

Returns:

  • (String)


1077
1078
1079
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1077

def status
  @status
end

#subaccount_idString

Subaccount ID of this advertiser.This is a read-only field that can be left blank. Corresponds to the JSON property subaccountId

Returns:

  • (String)


1083
1084
1085
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1083

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1090

def update!(**args)
  @account_id = args[:account_id] unless args[:account_id].nil?
  @advertiser_group_id = args[:advertiser_group_id] unless args[:advertiser_group_id].nil?
  @click_through_url_suffix = args[:click_through_url_suffix] unless args[:click_through_url_suffix].nil?
  @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] unless args[:default_click_through_event_tag_id].nil?
  @default_email = args[:default_email] unless args[:default_email].nil?
  @floodlight_configuration_id = args[:floodlight_configuration_id] unless args[:floodlight_configuration_id].nil?
  @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] unless args[:floodlight_configuration_id_dimension_value].nil?
  @id = args[:id] unless args[:id].nil?
  @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @name = args[:name] unless args[:name].nil?
  @original_floodlight_configuration_id = args[:original_floodlight_configuration_id] unless args[:original_floodlight_configuration_id].nil?
  @status = args[:status] unless args[:status].nil?
  @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil?
end