Class: Google::Apis::AnalyticsV3::EntityAdWordsLink
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::EntityAdWordsLink
- 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 Google Ads Link.
Defined Under Namespace
Classes: Entity
Instance Attribute Summary collapse
-
#ad_words_accounts ⇒ Array<Google::Apis::AnalyticsV3::AdWordsAccount>
A list of Google Ads client accounts.
-
#entity ⇒ Google::Apis::AnalyticsV3::EntityAdWordsLink::Entity
Web property being linked.
-
#id ⇒ String
Entity Google Ads link ID Corresponds to the JSON property
id
. -
#kind ⇒ String
Resource type for entity Google Ads link.
-
#name ⇒ String
Name of the link.
-
#profile_ids ⇒ Array<String>
IDs of linked Views (Profiles) represented as strings.
-
#self_link ⇒ String
URL link for this Google Analytics - Google Ads link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityAdWordsLink
constructor
A new instance of EntityAdWordsLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EntityAdWordsLink
Returns a new instance of EntityAdWordsLink.
1280 1281 1282 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_words_accounts ⇒ Array<Google::Apis::AnalyticsV3::AdWordsAccount>
A list of Google Ads client accounts. These cannot be MCC accounts. This field
is required when creating a Google Ads link. It cannot be empty.
Corresponds to the JSON property adWordsAccounts
1248 1249 1250 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1248 def ad_words_accounts @ad_words_accounts end |
#entity ⇒ Google::Apis::AnalyticsV3::EntityAdWordsLink::Entity
Web property being linked.
Corresponds to the JSON property entity
1253 1254 1255 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1253 def entity @entity end |
#id ⇒ String
Entity Google Ads link ID
Corresponds to the JSON property id
1258 1259 1260 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1258 def id @id end |
#kind ⇒ String
Resource type for entity Google Ads link.
Corresponds to the JSON property kind
1263 1264 1265 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1263 def kind @kind end |
#name ⇒ String
Name of the link. This field is required when creating a Google Ads link.
Corresponds to the JSON property name
1268 1269 1270 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1268 def name @name end |
#profile_ids ⇒ Array<String>
IDs of linked Views (Profiles) represented as strings.
Corresponds to the JSON property profileIds
1273 1274 1275 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1273 def profile_ids @profile_ids end |
#self_link ⇒ String
URL link for this Google Analytics - Google Ads link.
Corresponds to the JSON property selfLink
1278 1279 1280 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1278 def self_link @self_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1285 1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1285 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 |