google-api-client 0.9.11 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/api_names.yaml +55 -117
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
- data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
- data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -2
- data/generated/google/apis/bigquery_v2/representations.rb +6 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +599 -77
- data/generated/google/apis/compute_beta/representations.rb +240 -0
- data/generated/google/apis/compute_beta/service.rb +1999 -710
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +140 -58
- data/generated/google/apis/compute_v1/representations.rb +17 -0
- data/generated/google/apis/compute_v1/service.rb +462 -521
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +689 -1
- data/generated/google/apis/content_v2/representations.rb +316 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +8 -0
- data/generated/google/apis/fitness_v1/representations.rb +1 -0
- data/generated/google/apis/fitness_v1/service.rb +2 -2
- data/generated/google/apis/fitness_v1.rb +7 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +13 -2
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +8 -11
- data/generated/google/apis/gmail_v1/service.rb +5 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +340 -421
- data/generated/google/apis/monitoring_v3/representations.rb +0 -17
- data/generated/google/apis/monitoring_v3/service.rb +136 -168
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +36 -1
- data/generated/google/apis/storage_v1/representations.rb +16 -0
- data/generated/google/apis/storage_v1/service.rb +18 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -3
|
@@ -376,6 +376,18 @@ module Google
|
|
|
376
376
|
include Google::Apis::Core::JsonObjectSupport
|
|
377
377
|
end
|
|
378
378
|
|
|
379
|
+
class IncludeConditions
|
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
|
+
|
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
class LinkedForeignAccount
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
379
391
|
class McfData
|
|
380
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
393
|
|
|
@@ -490,6 +502,36 @@ module Google
|
|
|
490
502
|
include Google::Apis::Core::JsonObjectSupport
|
|
491
503
|
end
|
|
492
504
|
|
|
505
|
+
class RemarketingAudience
|
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
507
|
+
|
|
508
|
+
class AudienceDefinition
|
|
509
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
510
|
+
|
|
511
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
class StateBasedAudienceDefinition
|
|
515
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
516
|
+
|
|
517
|
+
class ExcludeConditions
|
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
519
|
+
|
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
class RemarketingAudiences
|
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
531
|
+
|
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
533
|
+
end
|
|
534
|
+
|
|
493
535
|
class Segment
|
|
494
536
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
495
537
|
|
|
@@ -1366,6 +1408,33 @@ module Google
|
|
|
1366
1408
|
end
|
|
1367
1409
|
end
|
|
1368
1410
|
|
|
1411
|
+
class IncludeConditions
|
|
1412
|
+
# @private
|
|
1413
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1414
|
+
property :days_to_look_back, as: 'daysToLookBack'
|
|
1415
|
+
property :is_smart_list, as: 'isSmartList'
|
|
1416
|
+
property :kind, as: 'kind'
|
|
1417
|
+
property :membership_duration_days, as: 'membershipDurationDays'
|
|
1418
|
+
property :segment, as: 'segment'
|
|
1419
|
+
end
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
class LinkedForeignAccount
|
|
1423
|
+
# @private
|
|
1424
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1425
|
+
property :account_id, as: 'accountId'
|
|
1426
|
+
property :eligible_for_search, as: 'eligibleForSearch'
|
|
1427
|
+
property :id, as: 'id'
|
|
1428
|
+
property :internal_web_property_id, as: 'internalWebPropertyId'
|
|
1429
|
+
property :kind, as: 'kind'
|
|
1430
|
+
property :linked_account_id, as: 'linkedAccountId'
|
|
1431
|
+
property :remarketing_audience_id, as: 'remarketingAudienceId'
|
|
1432
|
+
property :status, as: 'status'
|
|
1433
|
+
property :type, as: 'type'
|
|
1434
|
+
property :web_property_id, as: 'webPropertyId'
|
|
1435
|
+
end
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1369
1438
|
class McfData
|
|
1370
1439
|
# @private
|
|
1371
1440
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1633,6 +1702,72 @@ module Google
|
|
|
1633
1702
|
end
|
|
1634
1703
|
end
|
|
1635
1704
|
|
|
1705
|
+
class RemarketingAudience
|
|
1706
|
+
# @private
|
|
1707
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1708
|
+
property :account_id, as: 'accountId'
|
|
1709
|
+
property :audience_definition, as: 'audienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition::Representation
|
|
1710
|
+
|
|
1711
|
+
property :audience_type, as: 'audienceType'
|
|
1712
|
+
property :created, as: 'created', type: DateTime
|
|
1713
|
+
|
|
1714
|
+
property :description, as: 'description'
|
|
1715
|
+
property :id, as: 'id'
|
|
1716
|
+
property :internal_web_property_id, as: 'internalWebPropertyId'
|
|
1717
|
+
property :kind, as: 'kind'
|
|
1718
|
+
collection :linked_ad_accounts, as: 'linkedAdAccounts', class: Google::Apis::AnalyticsV3::LinkedForeignAccount, decorator: Google::Apis::AnalyticsV3::LinkedForeignAccount::Representation
|
|
1719
|
+
|
|
1720
|
+
collection :linked_views, as: 'linkedViews'
|
|
1721
|
+
property :name, as: 'name'
|
|
1722
|
+
property :state_based_audience_definition, as: 'stateBasedAudienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::Representation
|
|
1723
|
+
|
|
1724
|
+
property :updated, as: 'updated', type: DateTime
|
|
1725
|
+
|
|
1726
|
+
property :web_property_id, as: 'webPropertyId'
|
|
1727
|
+
end
|
|
1728
|
+
|
|
1729
|
+
class AudienceDefinition
|
|
1730
|
+
# @private
|
|
1731
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1732
|
+
property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
|
|
1733
|
+
|
|
1734
|
+
end
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1737
|
+
class StateBasedAudienceDefinition
|
|
1738
|
+
# @private
|
|
1739
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1740
|
+
property :exclude_conditions, as: 'excludeConditions', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions::Representation
|
|
1741
|
+
|
|
1742
|
+
property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
|
|
1743
|
+
|
|
1744
|
+
end
|
|
1745
|
+
|
|
1746
|
+
class ExcludeConditions
|
|
1747
|
+
# @private
|
|
1748
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1749
|
+
property :exclusion_duration, as: 'exclusionDuration'
|
|
1750
|
+
property :segment, as: 'segment'
|
|
1751
|
+
end
|
|
1752
|
+
end
|
|
1753
|
+
end
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
class RemarketingAudiences
|
|
1757
|
+
# @private
|
|
1758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1759
|
+
collection :items, as: 'items', class: Google::Apis::AnalyticsV3::RemarketingAudience, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
1760
|
+
|
|
1761
|
+
property :items_per_page, as: 'itemsPerPage'
|
|
1762
|
+
property :kind, as: 'kind'
|
|
1763
|
+
property :next_link, as: 'nextLink'
|
|
1764
|
+
property :previous_link, as: 'previousLink'
|
|
1765
|
+
property :start_index, as: 'startIndex'
|
|
1766
|
+
property :total_results, as: 'totalResults'
|
|
1767
|
+
property :username, as: 'username'
|
|
1768
|
+
end
|
|
1769
|
+
end
|
|
1770
|
+
|
|
1636
1771
|
class Segment
|
|
1637
1772
|
# @private
|
|
1638
1773
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2450,6 +2450,224 @@ module Google
|
|
|
2450
2450
|
execute_or_queue_command(command, &block)
|
|
2451
2451
|
end
|
|
2452
2452
|
|
|
2453
|
+
# Gets remarketing audiences to which the user has access.
|
|
2454
|
+
# @param [String] account_id
|
|
2455
|
+
# Account ID for the remarketing audience to retrieve.
|
|
2456
|
+
# @param [String] web_property_id
|
|
2457
|
+
# Web property ID for the remarketing audience to retrieve.
|
|
2458
|
+
# @param [String] remarketing_audience_id
|
|
2459
|
+
# The ID to retrieve the Remarketing Audience for.
|
|
2460
|
+
# @param [String] fields
|
|
2461
|
+
# Selector specifying which fields to include in a partial response.
|
|
2462
|
+
# @param [String] quota_user
|
|
2463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2465
|
+
# Overrides userIp if both are provided.
|
|
2466
|
+
# @param [String] user_ip
|
|
2467
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2468
|
+
# enforce per-user limits.
|
|
2469
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2470
|
+
# Request-specific options
|
|
2471
|
+
#
|
|
2472
|
+
# @yield [result, err] Result & error if block supplied
|
|
2473
|
+
# @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
|
|
2474
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2475
|
+
#
|
|
2476
|
+
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
|
2477
|
+
#
|
|
2478
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2479
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2480
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2481
|
+
def get_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2482
|
+
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
|
2483
|
+
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2484
|
+
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
|
2485
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2486
|
+
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
|
2487
|
+
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
|
|
2488
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2490
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2491
|
+
execute_or_queue_command(command, &block)
|
|
2492
|
+
end
|
|
2493
|
+
|
|
2494
|
+
# Creates a new remarketing audiences.
|
|
2495
|
+
# @param [String] account_id
|
|
2496
|
+
# Account ID to create the remarketing audience for.
|
|
2497
|
+
# @param [String] web_property_id
|
|
2498
|
+
# Web property ID to create the remarketing audience for.
|
|
2499
|
+
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
|
2500
|
+
# @param [String] fields
|
|
2501
|
+
# Selector specifying which fields to include in a partial response.
|
|
2502
|
+
# @param [String] quota_user
|
|
2503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2505
|
+
# Overrides userIp if both are provided.
|
|
2506
|
+
# @param [String] user_ip
|
|
2507
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2508
|
+
# enforce per-user limits.
|
|
2509
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2510
|
+
# Request-specific options
|
|
2511
|
+
#
|
|
2512
|
+
# @yield [result, err] Result & error if block supplied
|
|
2513
|
+
# @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
|
|
2514
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2515
|
+
#
|
|
2516
|
+
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
|
2517
|
+
#
|
|
2518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2521
|
+
def insert_management_remarketing_audience(account_id, web_property_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2522
|
+
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
|
|
2523
|
+
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2524
|
+
command.request_object = remarketing_audience_object
|
|
2525
|
+
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2526
|
+
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
|
2527
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2528
|
+
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
|
2529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2531
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2532
|
+
execute_or_queue_command(command, &block)
|
|
2533
|
+
end
|
|
2534
|
+
|
|
2535
|
+
# Lists remarketing audiences to which the user has access.
|
|
2536
|
+
# @param [String] account_id
|
|
2537
|
+
# Account ID for the remarketing audience to retrieve.
|
|
2538
|
+
# @param [String] web_property_id
|
|
2539
|
+
# Web property ID for the remarketing audience to retrieve.
|
|
2540
|
+
# @param [Fixnum] max_results
|
|
2541
|
+
# The maximum number of remarketing audiences to include in this response.
|
|
2542
|
+
# @param [Fixnum] start_index
|
|
2543
|
+
# An index of the first entity to retrieve. Use this parameter as a pagination
|
|
2544
|
+
# mechanism along with the max-results parameter.
|
|
2545
|
+
# @param [String] type
|
|
2546
|
+
# @param [String] fields
|
|
2547
|
+
# Selector specifying which fields to include in a partial response.
|
|
2548
|
+
# @param [String] quota_user
|
|
2549
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2550
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2551
|
+
# Overrides userIp if both are provided.
|
|
2552
|
+
# @param [String] user_ip
|
|
2553
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2554
|
+
# enforce per-user limits.
|
|
2555
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2556
|
+
# Request-specific options
|
|
2557
|
+
#
|
|
2558
|
+
# @yield [result, err] Result & error if block supplied
|
|
2559
|
+
# @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudiences] parsed result object
|
|
2560
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2561
|
+
#
|
|
2562
|
+
# @return [Google::Apis::AnalyticsV3::RemarketingAudiences]
|
|
2563
|
+
#
|
|
2564
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2565
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2566
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2567
|
+
def list_management_remarketing_audiences(account_id, web_property_id, max_results: nil, start_index: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2568
|
+
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
|
|
2569
|
+
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudiences::Representation
|
|
2570
|
+
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudiences
|
|
2571
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2572
|
+
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
|
2573
|
+
command.query['max-results'] = max_results unless max_results.nil?
|
|
2574
|
+
command.query['start-index'] = start_index unless start_index.nil?
|
|
2575
|
+
command.query['type'] = type unless type.nil?
|
|
2576
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2577
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2578
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2579
|
+
execute_or_queue_command(command, &block)
|
|
2580
|
+
end
|
|
2581
|
+
|
|
2582
|
+
# Updates an existing remarketing audiences. This method supports patch
|
|
2583
|
+
# semantics.
|
|
2584
|
+
# @param [String] account_id
|
|
2585
|
+
# Account ID for the remarketing audience to update.
|
|
2586
|
+
# @param [String] web_property_id
|
|
2587
|
+
# Web property ID for the remarketing audience to update.
|
|
2588
|
+
# @param [String] remarketing_audience_id
|
|
2589
|
+
# Remarketing audience ID of the remarketing audience to update.
|
|
2590
|
+
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
|
2591
|
+
# @param [String] fields
|
|
2592
|
+
# Selector specifying which fields to include in a partial response.
|
|
2593
|
+
# @param [String] quota_user
|
|
2594
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2595
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2596
|
+
# Overrides userIp if both are provided.
|
|
2597
|
+
# @param [String] user_ip
|
|
2598
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2599
|
+
# enforce per-user limits.
|
|
2600
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2601
|
+
# Request-specific options
|
|
2602
|
+
#
|
|
2603
|
+
# @yield [result, err] Result & error if block supplied
|
|
2604
|
+
# @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
|
|
2605
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2606
|
+
#
|
|
2607
|
+
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
|
2608
|
+
#
|
|
2609
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2610
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2611
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2612
|
+
def patch_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2613
|
+
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
|
2614
|
+
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2615
|
+
command.request_object = remarketing_audience_object
|
|
2616
|
+
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2617
|
+
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
|
2618
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2619
|
+
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
|
2620
|
+
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
|
|
2621
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2622
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2623
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2624
|
+
execute_or_queue_command(command, &block)
|
|
2625
|
+
end
|
|
2626
|
+
|
|
2627
|
+
# Updates an existing remarketing audiences.
|
|
2628
|
+
# @param [String] account_id
|
|
2629
|
+
# Account ID for the remarketing audience to update.
|
|
2630
|
+
# @param [String] web_property_id
|
|
2631
|
+
# Web property ID for the remarketing audience to update.
|
|
2632
|
+
# @param [String] remarketing_audience_id
|
|
2633
|
+
# Remarketing audience ID of the remarketing audience to update.
|
|
2634
|
+
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
|
2635
|
+
# @param [String] fields
|
|
2636
|
+
# Selector specifying which fields to include in a partial response.
|
|
2637
|
+
# @param [String] quota_user
|
|
2638
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2639
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2640
|
+
# Overrides userIp if both are provided.
|
|
2641
|
+
# @param [String] user_ip
|
|
2642
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2643
|
+
# enforce per-user limits.
|
|
2644
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2645
|
+
# Request-specific options
|
|
2646
|
+
#
|
|
2647
|
+
# @yield [result, err] Result & error if block supplied
|
|
2648
|
+
# @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
|
|
2649
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2650
|
+
#
|
|
2651
|
+
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
|
2652
|
+
#
|
|
2653
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2654
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2655
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2656
|
+
def update_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2657
|
+
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
|
2658
|
+
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2659
|
+
command.request_object = remarketing_audience_object
|
|
2660
|
+
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
|
2661
|
+
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
|
2662
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2663
|
+
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
|
2664
|
+
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
|
|
2665
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2666
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2667
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2668
|
+
execute_or_queue_command(command, &block)
|
|
2669
|
+
end
|
|
2670
|
+
|
|
2453
2671
|
# Lists segments to which the user has access.
|
|
2454
2672
|
# @param [Fixnum] max_results
|
|
2455
2673
|
# The maximum number of segments to include in this response.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/analytics/
|
|
26
26
|
module AnalyticsV3
|
|
27
27
|
VERSION = 'V3'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20160805'
|
|
29
29
|
|
|
30
30
|
# View and manage your Google Analytics data
|
|
31
31
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
|
@@ -47,7 +47,9 @@ module Google
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
50
|
+
# [Metrics](https://support.google.com/analytics/answer/1033861)
|
|
51
|
+
# are the quantitative measurements. For example, the metric `ga:users`
|
|
52
|
+
# indicates the total number of users for the requested time period.
|
|
51
53
|
class Metric
|
|
52
54
|
include Google::Apis::Core::Hashable
|
|
53
55
|
|
|
@@ -358,7 +360,8 @@ module Google
|
|
|
358
360
|
# @return [Google::Apis::AnalyticsreportingV4::CohortGroup]
|
|
359
361
|
attr_accessor :cohort_group
|
|
360
362
|
|
|
361
|
-
#
|
|
363
|
+
# The dimensions requested.
|
|
364
|
+
# Requests can have a total of 7 dimensions.
|
|
362
365
|
# Corresponds to the JSON property `dimensions`
|
|
363
366
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Dimension>]
|
|
364
367
|
attr_accessor :dimensions
|
|
@@ -394,7 +397,7 @@ module Google
|
|
|
394
397
|
# @return [Array<Google::Apis::AnalyticsreportingV4::DimensionFilterClause>]
|
|
395
398
|
attr_accessor :dimension_filter_clauses
|
|
396
399
|
|
|
397
|
-
# The pivot definitions.
|
|
400
|
+
# The pivot definitions. Requests can have a maximum of 2 pivots.
|
|
398
401
|
# Corresponds to the JSON property `pivots`
|
|
399
402
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Pivot>]
|
|
400
403
|
attr_accessor :pivots
|
|
@@ -434,8 +437,9 @@ module Google
|
|
|
434
437
|
# @return [String]
|
|
435
438
|
attr_accessor :sampling_level
|
|
436
439
|
|
|
437
|
-
#
|
|
438
|
-
# Requests must specify at least one metric.
|
|
440
|
+
# The metrics requested.
|
|
441
|
+
# Requests must specify at least one metric. Requests can have a
|
|
442
|
+
# total of 10 metrics.
|
|
439
443
|
# Corresponds to the JSON property `metrics`
|
|
440
444
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Metric>]
|
|
441
445
|
attr_accessor :metrics
|
|
@@ -987,12 +991,15 @@ module Google
|
|
|
987
991
|
class Pivot
|
|
988
992
|
include Google::Apis::Core::Hashable
|
|
989
993
|
|
|
990
|
-
# A list of dimensions to show as pivot columns.
|
|
994
|
+
# A list of dimensions to show as pivot columns. A Pivot can have a maximum
|
|
995
|
+
# of 4 dimensions. Pivot dimensions are part of the restriction on the
|
|
996
|
+
# total number of dimensions allowed in the request.
|
|
991
997
|
# Corresponds to the JSON property `dimensions`
|
|
992
998
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Dimension>]
|
|
993
999
|
attr_accessor :dimensions
|
|
994
1000
|
|
|
995
|
-
#
|
|
1001
|
+
# The pivot metrics. Pivot metrics are part of the
|
|
1002
|
+
# restriction on total number of metrics allowed in the request.
|
|
996
1003
|
# Corresponds to the JSON property `metrics`
|
|
997
1004
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Metric>]
|
|
998
1005
|
attr_accessor :metrics
|
|
@@ -1331,7 +1338,10 @@ module Google
|
|
|
1331
1338
|
end
|
|
1332
1339
|
end
|
|
1333
1340
|
|
|
1334
|
-
#
|
|
1341
|
+
# [Dimensions](https://support.google.com/analytics/answer/1033861)
|
|
1342
|
+
# are attributes of your data. For example, the dimension `ga:city`
|
|
1343
|
+
# indicates the city, for example, "Paris" or "New York", from which
|
|
1344
|
+
# a session originates.
|
|
1335
1345
|
class Dimension
|
|
1336
1346
|
include Google::Apis::Core::Hashable
|
|
1337
1347
|
|