google-apis-admob_v1beta 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0376f520fd3b434211b890e91ab46002bc867f19d1994cf6d90fec73dfda033a
4
- data.tar.gz: 374ba8a6c76c173dc2edd11005eb2f3110a4a8ee124fb1db87662868290cd516
3
+ metadata.gz: 5f018a8079b4435e6cb16357facfc0427921ac094dc34e89d54ca228e4a9fdff
4
+ data.tar.gz: e5445f55ce9385e481fe75ff8479583edb73c4dd4d906b0e1a359c21c1587f14
5
5
  SHA512:
6
- metadata.gz: 8923c12793260a31d5156da55fc13cb0831220eea23dd45faf8d6304d0dad26f49e488eefe9bf705d225ce34dacdfb8acea6e69353ccc061a0a287caac75bf90
7
- data.tar.gz: 35b7aaa2599c0cb264c41c04afbbdb383fd0e8db6151f76b371ebf865a938cb42c2b8f0e10a6b27f99624b857bef038605491c88bcb3ac753c56848ca986e37b
6
+ metadata.gz: 0c521c91b93e25005ed20d6415d2aacfe227f601a51532fedabdd9a6744408f1216b8416aa7fd710d0f88141120a476f34fa8e89b8a6436167519675b7a0b214
7
+ data.tar.gz: 182473f63f35a96a136f60674e8eccc7d6f66373615554836cf9eb52124825f2fa58b841d4ea219af519894e12b61c37d6e4288951659887e5264dd97fe49c40
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-admob_v1beta
2
2
 
3
+ ### v0.24.0 (2023-09-03)
4
+
5
+ * Regenerated from discovery document revision 20230831
6
+
3
7
  ### v0.23.0 (2023-08-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20230824
@@ -448,105 +448,6 @@ module Google
448
448
  end
449
449
  end
450
450
 
451
- # The request for the BatchUpdateCampaigns API.
452
- class BatchUpdateCampaignsRequest
453
- include Google::Apis::Core::Hashable
454
-
455
- # Required. The individual requests to update campaigns. Max 1000 allowed.
456
- # Corresponds to the JSON property `requests`
457
- # @return [Array<Google::Apis::AdmobV1beta::UpdateCampaignRequest>]
458
- attr_accessor :requests
459
-
460
- def initialize(**args)
461
- update!(**args)
462
- end
463
-
464
- # Update properties of this object
465
- def update!(**args)
466
- @requests = args[:requests] if args.key?(:requests)
467
- end
468
- end
469
-
470
- # The response for the BatchUpdateCampaigns API.
471
- class BatchUpdateCampaignsResponse
472
- include Google::Apis::Core::Hashable
473
-
474
- # The updated campaigns per the request.
475
- # Corresponds to the JSON property `campaigns`
476
- # @return [Array<Google::Apis::AdmobV1beta::Campaign>]
477
- attr_accessor :campaigns
478
-
479
- def initialize(**args)
480
- update!(**args)
481
- end
482
-
483
- # Update properties of this object
484
- def update!(**args)
485
- @campaigns = args[:campaigns] if args.key?(:campaigns)
486
- end
487
- end
488
-
489
- # Describes an AdMob campaign.
490
- class Campaign
491
- include Google::Apis::Core::Hashable
492
-
493
- # CPI setting for AdMob campaign. Ignored unless campaign goal type is MAX_CPI
494
- # or TARGET_CPI.
495
- # Corresponds to the JSON property `cpiSetting`
496
- # @return [Google::Apis::AdmobV1beta::CampaignCpiSetting]
497
- attr_accessor :cpi_setting
498
-
499
- # Output only. The display name for the campaign.
500
- # Corresponds to the JSON property `displayName`
501
- # @return [String]
502
- attr_accessor :display_name
503
-
504
- # Output only. The Goal type of the campaign.
505
- # Corresponds to the JSON property `goalType`
506
- # @return [String]
507
- attr_accessor :goal_type
508
-
509
- # Output only. Resource name for this campaign. Format is: accounts/`
510
- # publisher_id`/campaigns/`campaign_id` Example: accounts/pub-9876543210987654/
511
- # campaigns/0123456789
512
- # Corresponds to the JSON property `name`
513
- # @return [String]
514
- attr_accessor :name
515
-
516
- def initialize(**args)
517
- update!(**args)
518
- end
519
-
520
- # Update properties of this object
521
- def update!(**args)
522
- @cpi_setting = args[:cpi_setting] if args.key?(:cpi_setting)
523
- @display_name = args[:display_name] if args.key?(:display_name)
524
- @goal_type = args[:goal_type] if args.key?(:goal_type)
525
- @name = args[:name] if args.key?(:name)
526
- end
527
- end
528
-
529
- # CPI setting for AdMob campaign. Ignored unless campaign goal type is MAX_CPI
530
- # or TARGET_CPI.
531
- class CampaignCpiSetting
532
- include Google::Apis::Core::Hashable
533
-
534
- # Cost-per-install for this campaign in micro units in the currency of the
535
- # GoogleAds account linked to this AdMob publisher.
536
- # Corresponds to the JSON property `cpiMicros`
537
- # @return [Fixnum]
538
- attr_accessor :cpi_micros
539
-
540
- def initialize(**args)
541
- update!(**args)
542
- end
543
-
544
- # Update properties of this object
545
- def update!(**args)
546
- @cpi_micros = args[:cpi_micros] if args.key?(:cpi_micros)
547
- end
548
- end
549
-
550
451
  # The specification for generating a Campaign report. For example, the
551
452
  # specification to get IMPRESSIONS and CLICKS sliced by CAMPAIGN_ID can look
552
453
  # like the following example: ` "date_range": ` "start_date": `"year": 2021, "
@@ -1018,32 +919,6 @@ module Google
1018
919
  end
1019
920
  end
1020
921
 
1021
- # Response for the ListCampaignsRequest.
1022
- class ListCampaignsResponse
1023
- include Google::Apis::Core::Hashable
1024
-
1025
- # The resulting mediation groups for the requested account.
1026
- # Corresponds to the JSON property `campaigns`
1027
- # @return [Array<Google::Apis::AdmobV1beta::Campaign>]
1028
- attr_accessor :campaigns
1029
-
1030
- # Used to set the `page_token` in the `ListCampaignsRequest` to retrieve the
1031
- # next page. If this field is omitted, there are no subsequent pages.
1032
- # Corresponds to the JSON property `nextPageToken`
1033
- # @return [String]
1034
- attr_accessor :next_page_token
1035
-
1036
- def initialize(**args)
1037
- update!(**args)
1038
- end
1039
-
1040
- # Update properties of this object
1041
- def update!(**args)
1042
- @campaigns = args[:campaigns] if args.key?(:campaigns)
1043
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1044
- end
1045
- end
1046
-
1047
922
  # Response for the mediation groups list request.
1048
923
  class ListMediationGroupsResponse
1049
924
  include Google::Apis::Core::Hashable
@@ -1937,33 +1812,6 @@ module Google
1937
1812
  @values = args[:values] if args.key?(:values)
1938
1813
  end
1939
1814
  end
1940
-
1941
- # An update request for a singular campaign. Currently only cpi_micros of
1942
- # MAX_CPI and TARGET_CPI campaigns can be updated.
1943
- class UpdateCampaignRequest
1944
- include Google::Apis::Core::Hashable
1945
-
1946
- # Describes an AdMob campaign.
1947
- # Corresponds to the JSON property `campaign`
1948
- # @return [Google::Apis::AdmobV1beta::Campaign]
1949
- attr_accessor :campaign
1950
-
1951
- # List of campaign fields to be updated. Currently this field is not supported
1952
- # as only the cpi_micros field can be updated.
1953
- # Corresponds to the JSON property `updateMask`
1954
- # @return [String]
1955
- attr_accessor :update_mask
1956
-
1957
- def initialize(**args)
1958
- update!(**args)
1959
- end
1960
-
1961
- # Update properties of this object
1962
- def update!(**args)
1963
- @campaign = args[:campaign] if args.key?(:campaign)
1964
- @update_mask = args[:update_mask] if args.key?(:update_mask)
1965
- end
1966
- end
1967
1815
  end
1968
1816
  end
1969
1817
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdmobV1beta
18
18
  # Version of the google-apis-admob_v1beta gem
19
- GEM_VERSION = "0.23.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230824"
25
+ REVISION = "20230831"
26
26
  end
27
27
  end
28
28
  end
@@ -88,30 +88,6 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class BatchUpdateCampaignsRequest
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class BatchUpdateCampaignsResponse
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class Campaign
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class CampaignCpiSetting
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
91
  class CampaignReportSpec
116
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
93
 
@@ -202,12 +178,6 @@ module Google
202
178
  include Google::Apis::Core::JsonObjectSupport
203
179
  end
204
180
 
205
- class ListCampaignsResponse
206
- class Representation < Google::Apis::Core::JsonRepresentation; end
207
-
208
- include Google::Apis::Core::JsonObjectSupport
209
- end
210
-
211
181
  class ListMediationGroupsResponse
212
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
183
 
@@ -346,12 +316,6 @@ module Google
346
316
  include Google::Apis::Core::JsonObjectSupport
347
317
  end
348
318
 
349
- class UpdateCampaignRequest
350
- class Representation < Google::Apis::Core::JsonRepresentation; end
351
-
352
- include Google::Apis::Core::JsonObjectSupport
353
- end
354
-
355
319
  class AdSource
356
320
  # @private
357
321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -462,40 +426,6 @@ module Google
462
426
  end
463
427
  end
464
428
 
465
- class BatchUpdateCampaignsRequest
466
- # @private
467
- class Representation < Google::Apis::Core::JsonRepresentation
468
- collection :requests, as: 'requests', class: Google::Apis::AdmobV1beta::UpdateCampaignRequest, decorator: Google::Apis::AdmobV1beta::UpdateCampaignRequest::Representation
469
-
470
- end
471
- end
472
-
473
- class BatchUpdateCampaignsResponse
474
- # @private
475
- class Representation < Google::Apis::Core::JsonRepresentation
476
- collection :campaigns, as: 'campaigns', class: Google::Apis::AdmobV1beta::Campaign, decorator: Google::Apis::AdmobV1beta::Campaign::Representation
477
-
478
- end
479
- end
480
-
481
- class Campaign
482
- # @private
483
- class Representation < Google::Apis::Core::JsonRepresentation
484
- property :cpi_setting, as: 'cpiSetting', class: Google::Apis::AdmobV1beta::CampaignCpiSetting, decorator: Google::Apis::AdmobV1beta::CampaignCpiSetting::Representation
485
-
486
- property :display_name, as: 'displayName'
487
- property :goal_type, as: 'goalType'
488
- property :name, as: 'name'
489
- end
490
- end
491
-
492
- class CampaignCpiSetting
493
- # @private
494
- class Representation < Google::Apis::Core::JsonRepresentation
495
- property :cpi_micros, :numeric_string => true, as: 'cpiMicros'
496
- end
497
- end
498
-
499
429
  class CampaignReportSpec
500
430
  # @private
501
431
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -636,15 +566,6 @@ module Google
636
566
  end
637
567
  end
638
568
 
639
- class ListCampaignsResponse
640
- # @private
641
- class Representation < Google::Apis::Core::JsonRepresentation
642
- collection :campaigns, as: 'campaigns', class: Google::Apis::AdmobV1beta::Campaign, decorator: Google::Apis::AdmobV1beta::Campaign::Representation
643
-
644
- property :next_page_token, as: 'nextPageToken'
645
- end
646
- end
647
-
648
569
  class ListMediationGroupsResponse
649
570
  # @private
650
571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -885,15 +806,6 @@ module Google
885
806
  collection :values, as: 'values'
886
807
  end
887
808
  end
888
-
889
- class UpdateCampaignRequest
890
- # @private
891
- class Representation < Google::Apis::Core::JsonRepresentation
892
- property :campaign, as: 'campaign', class: Google::Apis::AdmobV1beta::Campaign, decorator: Google::Apis::AdmobV1beta::Campaign::Representation
893
-
894
- property :update_mask, as: 'updateMask'
895
- end
896
- end
897
809
  end
898
810
  end
899
811
  end
@@ -500,89 +500,6 @@ module Google
500
500
  execute_or_queue_command(command, &block)
501
501
  end
502
502
 
503
- # Batch update operation for campaigns under the specified AdMob publisher.
504
- # @param [String] parent
505
- # Required. Resource name of the account to list campaigns for. The `parent`
506
- # field in the individual UpdateCampaignRequest messages should match the value
507
- # set here. Example: accounts/pub-9876543210987654
508
- # @param [Google::Apis::AdmobV1beta::BatchUpdateCampaignsRequest] batch_update_campaigns_request_object
509
- # @param [String] fields
510
- # Selector specifying which fields to include in a partial response.
511
- # @param [String] quota_user
512
- # Available to use for quota purposes for server-side applications. Can be any
513
- # arbitrary string assigned to a user, but should not exceed 40 characters.
514
- # @param [Google::Apis::RequestOptions] options
515
- # Request-specific options
516
- #
517
- # @yield [result, err] Result & error if block supplied
518
- # @yieldparam result [Google::Apis::AdmobV1beta::BatchUpdateCampaignsResponse] parsed result object
519
- # @yieldparam err [StandardError] error object if request failed
520
- #
521
- # @return [Google::Apis::AdmobV1beta::BatchUpdateCampaignsResponse]
522
- #
523
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
524
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
525
- # @raise [Google::Apis::AuthorizationError] Authorization is required
526
- def batch_update_campaigns(parent, batch_update_campaigns_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
527
- command = make_simple_command(:post, 'v1beta/{+parent}/campaigns:batchUpdate', options)
528
- command.request_representation = Google::Apis::AdmobV1beta::BatchUpdateCampaignsRequest::Representation
529
- command.request_object = batch_update_campaigns_request_object
530
- command.response_representation = Google::Apis::AdmobV1beta::BatchUpdateCampaignsResponse::Representation
531
- command.response_class = Google::Apis::AdmobV1beta::BatchUpdateCampaignsResponse
532
- command.params['parent'] = parent unless parent.nil?
533
- command.query['fields'] = fields unless fields.nil?
534
- command.query['quotaUser'] = quota_user unless quota_user.nil?
535
- execute_or_queue_command(command, &block)
536
- end
537
-
538
- # List the campaigns under the specified AdMob account.
539
- # @param [String] parent
540
- # Required. Resource name of the account to list campaigns for. Example:
541
- # accounts/pub-9876543210987654
542
- # @param [String] filter
543
- # The filter string that uses [EBNF grammar syntax](https://google.aip.dev/
544
- # assets/misc/ebnf-filtering.txt). Possible field to filter by is: - "
545
- # CAMPAIGN_GOAL_TYPE" Possible filter function is: - `IN`: Used to filter fields
546
- # that represent a singleton including "CAMPAIGN_GOAL_TYPE". The filter
547
- # functions can be added together using `AND`. `OR` functionality is not
548
- # supported. Example: filter: IN(CAMPAIGN_GOAL_TYPE, "NUMBER_OF_CLICKS", "
549
- # MEDIATED_ADS")
550
- # @param [Fixnum] page_size
551
- # The maximum number of campaigns to return.
552
- # @param [String] page_token
553
- # The value returned by the last `ListCampaignsResponse`; indicates that this is
554
- # a continuation of a prior `ListGoogleBiddingAdUnits` call, and that the system
555
- # should return the next page of data.
556
- # @param [String] fields
557
- # Selector specifying which fields to include in a partial response.
558
- # @param [String] quota_user
559
- # Available to use for quota purposes for server-side applications. Can be any
560
- # arbitrary string assigned to a user, but should not exceed 40 characters.
561
- # @param [Google::Apis::RequestOptions] options
562
- # Request-specific options
563
- #
564
- # @yield [result, err] Result & error if block supplied
565
- # @yieldparam result [Google::Apis::AdmobV1beta::ListCampaignsResponse] parsed result object
566
- # @yieldparam err [StandardError] error object if request failed
567
- #
568
- # @return [Google::Apis::AdmobV1beta::ListCampaignsResponse]
569
- #
570
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
- # @raise [Google::Apis::AuthorizationError] Authorization is required
573
- def list_account_campaigns(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
574
- command = make_simple_command(:get, 'v1beta/{+parent}/campaigns', options)
575
- command.response_representation = Google::Apis::AdmobV1beta::ListCampaignsResponse::Representation
576
- command.response_class = Google::Apis::AdmobV1beta::ListCampaignsResponse
577
- command.params['parent'] = parent unless parent.nil?
578
- command.query['filter'] = filter unless filter.nil?
579
- command.query['pageSize'] = page_size unless page_size.nil?
580
- command.query['pageToken'] = page_token unless page_token.nil?
581
- command.query['fields'] = fields unless fields.nil?
582
- command.query['quotaUser'] = quota_user unless quota_user.nil?
583
- execute_or_queue_command(command, &block)
584
- end
585
-
586
503
  # Create a mediation group under the specific AdMob account.
587
504
  # @param [String] parent
588
505
  # Required. The parent which owns the mediation group. Format: accounts/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-admob_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admob_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1beta/v0.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1beta/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admob_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []