Class: Google::Apis::AnalyticsV3::AdWordsAccount

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

Overview

JSON template for an AdWords account.

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

Returns a new instance of AdWordsAccount



643
644
645
# File 'generated/google/apis/analytics_v3/classes.rb', line 643

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

Instance Attribute Details

#auto_tagging_enabledBoolean Also known as: auto_tagging_enabled?

True if auto-tagging is enabled on the AdWords account. Read-only after the insert operation. Corresponds to the JSON property autoTaggingEnabled

Returns:

  • (Boolean)


630
631
632
# File 'generated/google/apis/analytics_v3/classes.rb', line 630

def auto_tagging_enabled
  @auto_tagging_enabled
end

#customer_idString

Customer ID. This field is required when creating an AdWords link. Corresponds to the JSON property customerId

Returns:

  • (String)


636
637
638
# File 'generated/google/apis/analytics_v3/classes.rb', line 636

def customer_id
  @customer_id
end

#kindString

Resource type for AdWords account. Corresponds to the JSON property kind

Returns:

  • (String)


641
642
643
# File 'generated/google/apis/analytics_v3/classes.rb', line 641

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



648
649
650
651
652
# File 'generated/google/apis/analytics_v3/classes.rb', line 648

def update!(**args)
  @auto_tagging_enabled = args[:auto_tagging_enabled] if args.key?(:auto_tagging_enabled)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @kind = args[:kind] if args.key?(:kind)
end