google-apis-adsense_v2 0.28.0 → 0.29.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: 22436e147e0c59ac8fead60a2b862e224b6649b26893c1255f2424ac7191c858
4
- data.tar.gz: 4b8c99e96446682bd9af921244995668d74d2d2479c7c8b13b139dc66b4af082
3
+ metadata.gz: 3afdf6c146ce3af31bc492093391471dcc722337e3a79df78cc8340f2ab48f6c
4
+ data.tar.gz: 3f8f37fe56ea730f3c079f29238a9a02e06037c0aefa24d9ed30922053874899
5
5
  SHA512:
6
- metadata.gz: 7fa222801c702f2681ed99396717d0df2a39381756a05580f4dd8e06fc22a7ee41f59c775182e1e6515ddf25de05df9d6106c18305b73e3f2b633839e984cac8
7
- data.tar.gz: 870b4e465afd95fe08cb2d3cd9dd445590ae3aee5e37c79f52c42d17580b8cf6c3c16fee90f9b257bcc18f86666a33ccd6cf6e2bf1b4234e724015cd7646893d
6
+ metadata.gz: f6d68b39cea02ab35ca7e5bef467ccc5b17dfe03cf8284eda2ecb45676d89408f6fa97c533d4a78f06b1e4de48c5e4d26d22973c2dcf49ccbf58cad5d9a46fbe
7
+ data.tar.gz: 24340c9bdc2f17e0de597fb96b97986dad7ad5a24df895aa969e3daab7236904a2813c47630202d12fb53559dcbb9f6aa4f7c61a679a27d42c2ba83821374e03
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-adsense_v2
2
2
 
3
+ ### v0.29.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231016
6
+
3
7
  ### v0.28.0 (2023-10-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20231011
@@ -739,35 +739,6 @@ module Google
739
739
  end
740
740
  end
741
741
 
742
- # Response definition for the policy issues list rpc. Policy issues are reported
743
- # only if the publisher has at least one AFC ad client in READY or GETTING_READY
744
- # state. If the publisher has no such AFC ad client, the response will be an
745
- # empty list.
746
- class ListPolicyIssuesResponse
747
- include Google::Apis::Core::Hashable
748
-
749
- # Continuation token used to page through policy issues. To retrieve the next
750
- # page of the results, set the next request's "page_token" value to this.
751
- # Corresponds to the JSON property `nextPageToken`
752
- # @return [String]
753
- attr_accessor :next_page_token
754
-
755
- # The policy issues returned in the list response.
756
- # Corresponds to the JSON property `policyIssues`
757
- # @return [Array<Google::Apis::AdsenseV2::PolicyIssue>]
758
- attr_accessor :policy_issues
759
-
760
- def initialize(**args)
761
- update!(**args)
762
- end
763
-
764
- # Update properties of this object
765
- def update!(**args)
766
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
767
- @policy_issues = args[:policy_issues] if args.key?(:policy_issues)
768
- end
769
- end
770
-
771
742
  # Response definition for the saved reports list rpc.
772
743
  class ListSavedReportsResponse
773
744
  include Google::Apis::Core::Hashable
@@ -893,162 +864,6 @@ module Google
893
864
  end
894
865
  end
895
866
 
896
- # Representation of a policy issue for a single entity (site, site-section, or
897
- # page). All issues for a single entity are represented by a single PolicyIssue
898
- # resource, though that PolicyIssue can have multiple causes (or "topics") that
899
- # can change over time. Policy issues are removed if there are no issues
900
- # detected recently or if there's a recent successful appeal for the entity.
901
- class PolicyIssue
902
- include Google::Apis::Core::Hashable
903
-
904
- # Required. The most severe action taken on the entity over the past seven days.
905
- # Corresponds to the JSON property `action`
906
- # @return [String]
907
- attr_accessor :action
908
-
909
- # Optional. List of ad clients associated with the policy issue (either as the
910
- # primary ad client or an associated host/secondary ad client). In the latter
911
- # case, this will be an ad client that is not owned by the current account.
912
- # Corresponds to the JSON property `adClients`
913
- # @return [Array<String>]
914
- attr_accessor :ad_clients
915
-
916
- # Required. Total number of ad requests affected by the policy violations over
917
- # the past seven days.
918
- # Corresponds to the JSON property `adRequestCount`
919
- # @return [Fixnum]
920
- attr_accessor :ad_request_count
921
-
922
- # Required. Type of the entity indicating if the entity is a site, site-section,
923
- # or page.
924
- # Corresponds to the JSON property `entityType`
925
- # @return [String]
926
- attr_accessor :entity_type
927
-
928
- # Represents a whole or partial calendar date, such as a birthday. The time of
929
- # day and time zone are either specified elsewhere or are insignificant. The
930
- # date is relative to the Gregorian Calendar. This can represent one of the
931
- # following: * A full date, with non-zero year, month, and day values. * A month
932
- # and day, with a zero year (for example, an anniversary). * A year on its own,
933
- # with a zero month and a zero day. * A year and month, with a zero day (for
934
- # example, a credit card expiration date). Related types: * google.type.
935
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
936
- # Corresponds to the JSON property `firstDetectedDate`
937
- # @return [Google::Apis::AdsenseV2::Date]
938
- attr_accessor :first_detected_date
939
-
940
- # Represents a whole or partial calendar date, such as a birthday. The time of
941
- # day and time zone are either specified elsewhere or are insignificant. The
942
- # date is relative to the Gregorian Calendar. This can represent one of the
943
- # following: * A full date, with non-zero year, month, and day values. * A month
944
- # and day, with a zero year (for example, an anniversary). * A year on its own,
945
- # with a zero month and a zero day. * A year and month, with a zero day (for
946
- # example, a credit card expiration date). Related types: * google.type.
947
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
948
- # Corresponds to the JSON property `lastDetectedDate`
949
- # @return [Google::Apis::AdsenseV2::Date]
950
- attr_accessor :last_detected_date
951
-
952
- # Required. Resource name of the entity with policy issues. Format: accounts/`
953
- # account`/policyIssues/`policy_issue`
954
- # Corresponds to the JSON property `name`
955
- # @return [String]
956
- attr_accessor :name
957
-
958
- # Required. Unordered list. The policy topics that this entity was found to
959
- # violate over the past seven days.
960
- # Corresponds to the JSON property `policyTopics`
961
- # @return [Array<Google::Apis::AdsenseV2::PolicyTopic>]
962
- attr_accessor :policy_topics
963
-
964
- # Required. Hostname/domain of the entity (for example "foo.com" or "www.foo.com"
965
- # ). This _should_ be a bare domain/host name without any protocol. This will be
966
- # present for all policy issues.
967
- # Corresponds to the JSON property `site`
968
- # @return [String]
969
- attr_accessor :site
970
-
971
- # Optional. Prefix of the site-section having policy issues (For example "foo.
972
- # com/bar-section"). This will be present if the `entity_type` is `SITE_SECTION`
973
- # and will be absent for other entity types.
974
- # Corresponds to the JSON property `siteSection`
975
- # @return [String]
976
- attr_accessor :site_section
977
-
978
- # Optional. URI of the page having policy violations (for example "foo.com/bar"
979
- # or "www.foo.com/bar"). This will be present if the `entity_type` is `PAGE` and
980
- # will be absent for other entity types.
981
- # Corresponds to the JSON property `uri`
982
- # @return [String]
983
- attr_accessor :uri
984
-
985
- # Represents a whole or partial calendar date, such as a birthday. The time of
986
- # day and time zone are either specified elsewhere or are insignificant. The
987
- # date is relative to the Gregorian Calendar. This can represent one of the
988
- # following: * A full date, with non-zero year, month, and day values. * A month
989
- # and day, with a zero year (for example, an anniversary). * A year on its own,
990
- # with a zero month and a zero day. * A year and month, with a zero day (for
991
- # example, a credit card expiration date). Related types: * google.type.
992
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
993
- # Corresponds to the JSON property `warningEscalationDate`
994
- # @return [Google::Apis::AdsenseV2::Date]
995
- attr_accessor :warning_escalation_date
996
-
997
- def initialize(**args)
998
- update!(**args)
999
- end
1000
-
1001
- # Update properties of this object
1002
- def update!(**args)
1003
- @action = args[:action] if args.key?(:action)
1004
- @ad_clients = args[:ad_clients] if args.key?(:ad_clients)
1005
- @ad_request_count = args[:ad_request_count] if args.key?(:ad_request_count)
1006
- @entity_type = args[:entity_type] if args.key?(:entity_type)
1007
- @first_detected_date = args[:first_detected_date] if args.key?(:first_detected_date)
1008
- @last_detected_date = args[:last_detected_date] if args.key?(:last_detected_date)
1009
- @name = args[:name] if args.key?(:name)
1010
- @policy_topics = args[:policy_topics] if args.key?(:policy_topics)
1011
- @site = args[:site] if args.key?(:site)
1012
- @site_section = args[:site_section] if args.key?(:site_section)
1013
- @uri = args[:uri] if args.key?(:uri)
1014
- @warning_escalation_date = args[:warning_escalation_date] if args.key?(:warning_escalation_date)
1015
- end
1016
- end
1017
-
1018
- # Information about a particular policy topic. A policy topic represents a
1019
- # single class of policy issue that can impact ad serving for your site. For
1020
- # example, sexual content or having ads that obscure your content. A single
1021
- # policy issue can have multiple policy topics for a single entity.
1022
- class PolicyTopic
1023
- include Google::Apis::Core::Hashable
1024
-
1025
- # Required. Indicates if this is a policy violation or not. When the value is
1026
- # true, issues that are instances of this topic must be addressed to remain in
1027
- # compliance with the partner's agreements with Google. A false value indicates
1028
- # that it's not mandatory to fix the issues but advertising demand might be
1029
- # restricted.
1030
- # Corresponds to the JSON property `mustFix`
1031
- # @return [Boolean]
1032
- attr_accessor :must_fix
1033
- alias_method :must_fix?, :must_fix
1034
-
1035
- # Required. The policy topic. For example, "sexual-content" or "ads-obscuring-
1036
- # content"."
1037
- # Corresponds to the JSON property `topic`
1038
- # @return [String]
1039
- attr_accessor :topic
1040
-
1041
- def initialize(**args)
1042
- update!(**args)
1043
- end
1044
-
1045
- # Update properties of this object
1046
- def update!(**args)
1047
- @must_fix = args[:must_fix] if args.key?(:must_fix)
1048
- @topic = args[:topic] if args.key?(:topic)
1049
- end
1050
- end
1051
-
1052
867
  # Result of a generated report.
1053
868
  class ReportResult
1054
869
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdsenseV2
18
18
  # Version of the google-apis-adsense_v2 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.29.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 = "20231011"
25
+ REVISION = "20231016"
26
26
  end
27
27
  end
28
28
  end
@@ -160,12 +160,6 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
- class ListPolicyIssuesResponse
164
- class Representation < Google::Apis::Core::JsonRepresentation; end
165
-
166
- include Google::Apis::Core::JsonObjectSupport
167
- end
168
-
169
163
  class ListSavedReportsResponse
170
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
165
 
@@ -190,18 +184,6 @@ module Google
190
184
  include Google::Apis::Core::JsonObjectSupport
191
185
  end
192
186
 
193
- class PolicyIssue
194
- class Representation < Google::Apis::Core::JsonRepresentation; end
195
-
196
- include Google::Apis::Core::JsonObjectSupport
197
- end
198
-
199
- class PolicyTopic
200
- class Representation < Google::Apis::Core::JsonRepresentation; end
201
-
202
- include Google::Apis::Core::JsonObjectSupport
203
- end
204
-
205
187
  class ReportResult
206
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
189
 
@@ -445,15 +427,6 @@ module Google
445
427
  end
446
428
  end
447
429
 
448
- class ListPolicyIssuesResponse
449
- # @private
450
- class Representation < Google::Apis::Core::JsonRepresentation
451
- property :next_page_token, as: 'nextPageToken'
452
- collection :policy_issues, as: 'policyIssues', class: Google::Apis::AdsenseV2::PolicyIssue, decorator: Google::Apis::AdsenseV2::PolicyIssue::Representation
453
-
454
- end
455
- end
456
-
457
430
  class ListSavedReportsResponse
458
431
  # @private
459
432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -491,36 +464,6 @@ module Google
491
464
  end
492
465
  end
493
466
 
494
- class PolicyIssue
495
- # @private
496
- class Representation < Google::Apis::Core::JsonRepresentation
497
- property :action, as: 'action'
498
- collection :ad_clients, as: 'adClients'
499
- property :ad_request_count, :numeric_string => true, as: 'adRequestCount'
500
- property :entity_type, as: 'entityType'
501
- property :first_detected_date, as: 'firstDetectedDate', class: Google::Apis::AdsenseV2::Date, decorator: Google::Apis::AdsenseV2::Date::Representation
502
-
503
- property :last_detected_date, as: 'lastDetectedDate', class: Google::Apis::AdsenseV2::Date, decorator: Google::Apis::AdsenseV2::Date::Representation
504
-
505
- property :name, as: 'name'
506
- collection :policy_topics, as: 'policyTopics', class: Google::Apis::AdsenseV2::PolicyTopic, decorator: Google::Apis::AdsenseV2::PolicyTopic::Representation
507
-
508
- property :site, as: 'site'
509
- property :site_section, as: 'siteSection'
510
- property :uri, as: 'uri'
511
- property :warning_escalation_date, as: 'warningEscalationDate', class: Google::Apis::AdsenseV2::Date, decorator: Google::Apis::AdsenseV2::Date::Representation
512
-
513
- end
514
- end
515
-
516
- class PolicyTopic
517
- # @private
518
- class Representation < Google::Apis::Core::JsonRepresentation
519
- property :must_fix, as: 'mustFix'
520
- property :topic, as: 'topic'
521
- end
522
- end
523
-
524
467
  class ReportResult
525
468
  # @private
526
469
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -887,79 +887,6 @@ module Google
887
887
  execute_or_queue_command(command, &block)
888
888
  end
889
889
 
890
- # Gets information about the selected policy issue.
891
- # @param [String] name
892
- # Required. Name of the policy issue. Format: accounts/`account`/policyIssues/`
893
- # policy_issue`
894
- # @param [String] fields
895
- # Selector specifying which fields to include in a partial response.
896
- # @param [String] quota_user
897
- # Available to use for quota purposes for server-side applications. Can be any
898
- # arbitrary string assigned to a user, but should not exceed 40 characters.
899
- # @param [Google::Apis::RequestOptions] options
900
- # Request-specific options
901
- #
902
- # @yield [result, err] Result & error if block supplied
903
- # @yieldparam result [Google::Apis::AdsenseV2::PolicyIssue] parsed result object
904
- # @yieldparam err [StandardError] error object if request failed
905
- #
906
- # @return [Google::Apis::AdsenseV2::PolicyIssue]
907
- #
908
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
- # @raise [Google::Apis::AuthorizationError] Authorization is required
911
- def get_account_policy_issue(name, fields: nil, quota_user: nil, options: nil, &block)
912
- command = make_simple_command(:get, 'v2/{+name}', options)
913
- command.response_representation = Google::Apis::AdsenseV2::PolicyIssue::Representation
914
- command.response_class = Google::Apis::AdsenseV2::PolicyIssue
915
- command.params['name'] = name unless name.nil?
916
- command.query['fields'] = fields unless fields.nil?
917
- command.query['quotaUser'] = quota_user unless quota_user.nil?
918
- execute_or_queue_command(command, &block)
919
- end
920
-
921
- # Lists all the policy issues for the specified account.
922
- # @param [String] parent
923
- # Required. The account for which policy issues are being retrieved. Format:
924
- # accounts/`account`
925
- # @param [Fixnum] page_size
926
- # The maximum number of policy issues to include in the response, used for
927
- # paging. If unspecified, at most 10000 policy issues will be returned. The
928
- # maximum value is 10000; values above 10000 will be coerced to 10000.
929
- # @param [String] page_token
930
- # A page token, received from a previous `ListPolicyIssues` call. Provide this
931
- # to retrieve the subsequent page. When paginating, all other parameters
932
- # provided to `ListPolicyIssues` must match the call that provided the page
933
- # token.
934
- # @param [String] fields
935
- # Selector specifying which fields to include in a partial response.
936
- # @param [String] quota_user
937
- # Available to use for quota purposes for server-side applications. Can be any
938
- # arbitrary string assigned to a user, but should not exceed 40 characters.
939
- # @param [Google::Apis::RequestOptions] options
940
- # Request-specific options
941
- #
942
- # @yield [result, err] Result & error if block supplied
943
- # @yieldparam result [Google::Apis::AdsenseV2::ListPolicyIssuesResponse] parsed result object
944
- # @yieldparam err [StandardError] error object if request failed
945
- #
946
- # @return [Google::Apis::AdsenseV2::ListPolicyIssuesResponse]
947
- #
948
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
949
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
950
- # @raise [Google::Apis::AuthorizationError] Authorization is required
951
- def list_account_policy_issues(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
952
- command = make_simple_command(:get, 'v2/{+parent}/policyIssues', options)
953
- command.response_representation = Google::Apis::AdsenseV2::ListPolicyIssuesResponse::Representation
954
- command.response_class = Google::Apis::AdsenseV2::ListPolicyIssuesResponse
955
- command.params['parent'] = parent unless parent.nil?
956
- command.query['pageSize'] = page_size unless page_size.nil?
957
- command.query['pageToken'] = page_token unless page_token.nil?
958
- command.query['fields'] = fields unless fields.nil?
959
- command.query['quotaUser'] = quota_user unless quota_user.nil?
960
- execute_or_queue_command(command, &block)
961
- end
962
-
963
890
  # Generates an ad hoc report.
964
891
  # @param [String] account
965
892
  # Required. The account which owns the collection of reports. Format: accounts/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-adsense_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.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-10-15 00:00:00.000000000 Z
11
+ date: 2023-10-22 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-adsense_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsense_v2
63
63
  post_install_message:
64
64
  rdoc_options: []