Class: Google::Apis::DfareportingV2_8::Project

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

Overview

Contains properties of a Planning project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project



9236
9237
9238
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9236

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

Instance Attribute Details

#account_idFixnum

Account ID of this project. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


9125
9126
9127
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9125

def 
  @account_id
end

#advertiser_idFixnum

Advertiser ID of this project. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


9130
9131
9132
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9130

def advertiser_id
  @advertiser_id
end

#audience_age_groupString

Audience age group of this project. Corresponds to the JSON property audienceAgeGroup

Returns:

  • (String)


9135
9136
9137
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9135

def audience_age_group
  @audience_age_group
end

#audience_genderString

Audience gender of this project. Corresponds to the JSON property audienceGender

Returns:

  • (String)


9140
9141
9142
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9140

def audience_gender
  @audience_gender
end

#budgetFixnum

Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar. Corresponds to the JSON property budget

Returns:

  • (Fixnum)


9148
9149
9150
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9148

def budget
  @budget
end

#client_billing_codeString

Client billing code of this project. Corresponds to the JSON property clientBillingCode

Returns:

  • (String)


9153
9154
9155
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9153

def client_billing_code
  @client_billing_code
end

#client_nameString

Name of the project client. Corresponds to the JSON property clientName

Returns:

  • (String)


9158
9159
9160
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9158

def client_name
  @client_name
end

#end_dateDate

End date of the project. Corresponds to the JSON property endDate

Returns:

  • (Date)


9163
9164
9165
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9163

def end_date
  @end_date
end

#idFixnum

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

Returns:

  • (Fixnum)


9168
9169
9170
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9168

def id
  @id
end

#kindString

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

Returns:

  • (String)


9174
9175
9176
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9174

def kind
  @kind
end

#last_modified_infoGoogle::Apis::DfareportingV2_8::LastModifiedInfo

Modification timestamp. Corresponds to the JSON property lastModifiedInfo



9179
9180
9181
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9179

def last_modified_info
  @last_modified_info
end

#nameString

Name of this project. Corresponds to the JSON property name

Returns:

  • (String)


9184
9185
9186
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9184

def name
  @name
end

#overviewString

Overview of this project. Corresponds to the JSON property overview

Returns:

  • (String)


9189
9190
9191
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9189

def overview
  @overview
end

#start_dateDate

Start date of the project. Corresponds to the JSON property startDate

Returns:

  • (Date)


9194
9195
9196
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9194

def start_date
  @start_date
end

#subaccount_idFixnum

Subaccount ID of this project. Corresponds to the JSON property subaccountId

Returns:

  • (Fixnum)


9199
9200
9201
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9199

def subaccount_id
  @subaccount_id
end

#target_clicksFixnum

Number of clicks that the advertiser is targeting. Corresponds to the JSON property targetClicks

Returns:

  • (Fixnum)


9204
9205
9206
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9204

def target_clicks
  @target_clicks
end

#target_conversionsFixnum

Number of conversions that the advertiser is targeting. Corresponds to the JSON property targetConversions

Returns:

  • (Fixnum)


9209
9210
9211
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9209

def target_conversions
  @target_conversions
end

#target_cpa_nanosFixnum

CPA that the advertiser is targeting. Corresponds to the JSON property targetCpaNanos

Returns:

  • (Fixnum)


9214
9215
9216
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9214

def target_cpa_nanos
  @target_cpa_nanos
end

#target_cpc_nanosFixnum

CPC that the advertiser is targeting. Corresponds to the JSON property targetCpcNanos

Returns:

  • (Fixnum)


9219
9220
9221
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9219

def target_cpc_nanos
  @target_cpc_nanos
end

#target_cpm_active_view_nanosFixnum

vCPM from Active View that the advertiser is targeting. Corresponds to the JSON property targetCpmActiveViewNanos

Returns:

  • (Fixnum)


9224
9225
9226
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9224

def target_cpm_active_view_nanos
  @target_cpm_active_view_nanos
end

#target_cpm_nanosFixnum

CPM that the advertiser is targeting. Corresponds to the JSON property targetCpmNanos

Returns:

  • (Fixnum)


9229
9230
9231
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9229

def target_cpm_nanos
  @target_cpm_nanos
end

#target_impressionsFixnum

Number of impressions that the advertiser is targeting. Corresponds to the JSON property targetImpressions

Returns:

  • (Fixnum)


9234
9235
9236
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9234

def target_impressions
  @target_impressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 9241

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @audience_age_group = args[:audience_age_group] if args.key?(:audience_age_group)
  @audience_gender = args[:audience_gender] if args.key?(:audience_gender)
  @budget = args[:budget] if args.key?(:budget)
  @client_billing_code = args[:client_billing_code] if args.key?(:client_billing_code)
  @client_name = args[:client_name] if args.key?(:client_name)
  @end_date = args[:end_date] if args.key?(:end_date)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @overview = args[:overview] if args.key?(:overview)
  @start_date = args[:start_date] if args.key?(:start_date)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @target_clicks = args[:target_clicks] if args.key?(:target_clicks)
  @target_conversions = args[:target_conversions] if args.key?(:target_conversions)
  @target_cpa_nanos = args[:target_cpa_nanos] if args.key?(:target_cpa_nanos)
  @target_cpc_nanos = args[:target_cpc_nanos] if args.key?(:target_cpc_nanos)
  @target_cpm_active_view_nanos = args[:target_cpm_active_view_nanos] if args.key?(:target_cpm_active_view_nanos)
  @target_cpm_nanos = args[:target_cpm_nanos] if args.key?(:target_cpm_nanos)
  @target_impressions = args[:target_impressions] if args.key?(:target_impressions)
end