Class: Google::Apis::AnalyticsV3::EntityAdWordsLink

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 Analytics Entity AdWords Link.

Defined Under Namespace

Classes: Entity

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

Returns a new instance of EntityAdWordsLink



1374
1375
1376
# File 'generated/google/apis/analytics_v3/classes.rb', line 1374

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

Instance Attribute Details

#ad_words_accountsArray<Google::Apis::AnalyticsV3::AdWordsAccount>

A list of AdWords client accounts. These cannot be MCC accounts. This field is required when creating an AdWords link. It cannot be empty. Corresponds to the JSON property adWordsAccounts



1342
1343
1344
# File 'generated/google/apis/analytics_v3/classes.rb', line 1342

def ad_words_accounts
  @ad_words_accounts
end

#entityGoogle::Apis::AnalyticsV3::EntityAdWordsLink::Entity

Web property being linked. Corresponds to the JSON property entity



1347
1348
1349
# File 'generated/google/apis/analytics_v3/classes.rb', line 1347

def entity
  @entity
end

#idString

Entity AdWords link ID Corresponds to the JSON property id

Returns:

  • (String)


1352
1353
1354
# File 'generated/google/apis/analytics_v3/classes.rb', line 1352

def id
  @id
end

#kindString

Resource type for entity AdWords link. Corresponds to the JSON property kind

Returns:

  • (String)


1357
1358
1359
# File 'generated/google/apis/analytics_v3/classes.rb', line 1357

def kind
  @kind
end

#nameString

Name of the link. This field is required when creating an AdWords link. Corresponds to the JSON property name

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/analytics_v3/classes.rb', line 1362

def name
  @name
end

#profile_idsArray<String>

IDs of linked Views (Profiles) represented as strings. Corresponds to the JSON property profileIds

Returns:

  • (Array<String>)


1367
1368
1369
# File 'generated/google/apis/analytics_v3/classes.rb', line 1367

def profile_ids
  @profile_ids
end

URL link for this Google Analytics - Google AdWords link. Corresponds to the JSON property selfLink

Returns:

  • (String)


1372
1373
1374
# File 'generated/google/apis/analytics_v3/classes.rb', line 1372

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1379
1380
1381
1382
1383
1384
1385
1386
1387
# File 'generated/google/apis/analytics_v3/classes.rb', line 1379

def update!(**args)
  @ad_words_accounts = args[:ad_words_accounts] if args.key?(:ad_words_accounts)
  @entity = args[:entity] if args.key?(:entity)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @profile_ids = args[:profile_ids] if args.key?(:profile_ids)
  @self_link = args[:self_link] if args.key?(:self_link)
end