Class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo

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

Overview

Information about a particular AdWords Manager Account. Read more at https://support.google.com/adwords/answer/6139186

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) ⇒ AdWordsManagerAccountInfo

Returns a new instance of AdWordsManagerAccountInfo



40
41
42
# File 'generated/google/apis/partners_v2/classes.rb', line 40

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

Instance Attribute Details

#customer_nameString

Name of the customer this account represents. Corresponds to the JSON property customerName

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/partners_v2/classes.rb', line 33

def customer_name
  @customer_name
end

#idFixnum

The AdWords Manager Account id. Corresponds to the JSON property id

Returns:

  • (Fixnum)


38
39
40
# File 'generated/google/apis/partners_v2/classes.rb', line 38

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'generated/google/apis/partners_v2/classes.rb', line 45

def update!(**args)
  @customer_name = args[:customer_name] if args.key?(:customer_name)
  @id = args[:id] if args.key?(:id)
end