@maxim_mazurok/gapi.client.adsense-v2 0.0.20240321 → 0.0.20240326

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.
Files changed (2) hide show
  1. package/index.d.ts +100 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://adsense.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20240321
12
+ // Revision: 20240326
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -185,6 +185,12 @@ declare namespace gapi.client {
185
185
  /** The payments returned in this list response. */
186
186
  payments?: Payment[];
187
187
  }
188
+ interface ListPolicyIssuesResponse {
189
+ /** Continuation token used to page through policy issues. To retrieve the next page of the results, set the next request's "page_token" value to this. */
190
+ nextPageToken?: string;
191
+ /** The policy issues returned in the list response. */
192
+ policyIssues?: PolicyIssue[];
193
+ }
188
194
  interface ListSavedReportsResponse {
189
195
  /** Continuation token used to page through reports. To retrieve the next page of the results, set the next request's "page_token" value to this. */
190
196
  nextPageToken?: string;
@@ -211,6 +217,38 @@ declare namespace gapi.client {
211
217
  /** Output only. Resource name of the payment. Format: - accounts/{account}/payments/unpaid for unpaid (current) AdSense earnings. - accounts/{account}/payments/youtube-unpaid for unpaid (current) YouTube earnings. - accounts/{account}/payments/yyyy-MM-dd for paid AdSense earnings. - accounts/{account}/payments/youtube-yyyy-MM-dd for paid YouTube earnings. */
212
218
  name?: string;
213
219
  }
220
+ interface PolicyIssue {
221
+ /** Required. The most severe action taken on the entity over the past seven days. */
222
+ action?: string;
223
+ /** Optional. List of ad clients associated with the policy issue (either as the primary ad client or an associated host/secondary ad client). In the latter case, this will be an ad client that is not owned by the current account. */
224
+ adClients?: string[];
225
+ /** Required. Total number of ad requests affected by the policy violations over the past seven days. */
226
+ adRequestCount?: string;
227
+ /** Required. Type of the entity indicating if the entity is a site, site-section, or page. */
228
+ entityType?: string;
229
+ /** Required. The date (in the America/Los_Angeles timezone) when policy violations were first detected on the entity. */
230
+ firstDetectedDate?: Date;
231
+ /** Required. The date (in the America/Los_Angeles timezone) when policy violations were last detected on the entity. */
232
+ lastDetectedDate?: Date;
233
+ /** Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue} */
234
+ name?: string;
235
+ /** Required. Unordered list. The policy topics that this entity was found to violate over the past seven days. */
236
+ policyTopics?: PolicyTopic[];
237
+ /** Required. Hostname/domain of the entity (for example "foo.com" or "www.foo.com"). This _should_ be a bare domain/host name without any protocol. This will be present for all policy issues. */
238
+ site?: string;
239
+ /** Optional. Prefix of the site-section having policy issues (For example "foo.com/bar-section"). This will be present if the `entity_type` is `SITE_SECTION` and will be absent for other entity types. */
240
+ siteSection?: string;
241
+ /** Optional. URI of the page having policy violations (for example "foo.com/bar" or "www.foo.com/bar"). This will be present if the `entity_type` is `PAGE` and will be absent for other entity types. */
242
+ uri?: string;
243
+ /** Optional. The date (in the America/Los_Angeles timezone) when the entity will have ad serving demand restricted or ad serving disabled. This is present only for issues with a `WARNED` enforcement action. See https://support.google.com/adsense/answer/11066888. */
244
+ warningEscalationDate?: Date;
245
+ }
246
+ interface PolicyTopic {
247
+ /** Required. Indicates if this is a policy violation or not. When the value is true, issues that are instances of this topic must be addressed to remain in compliance with the partner's agreements with Google. A false value indicates that it's not mandatory to fix the issues but advertising demand might be restricted. */
248
+ mustFix?: boolean;
249
+ /** Required. The policy topic. For example, "sexual-content" or "ads-obscuring-content"." */
250
+ topic?: string;
251
+ }
214
252
  interface ReportResult {
215
253
  /** The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty. */
216
254
  averages?: Row;
@@ -951,6 +989,66 @@ declare namespace gapi.client {
951
989
  uploadType?: string;
952
990
  }): Request<ListPaymentsResponse>;
953
991
  }
992
+ interface PolicyIssuesResource {
993
+ /** Gets information about the selected policy issue. */
994
+ get(request?: {
995
+ /** V1 error format. */
996
+ '$.xgafv'?: string;
997
+ /** OAuth access token. */
998
+ access_token?: string;
999
+ /** Data format for response. */
1000
+ alt?: string;
1001
+ /** JSONP */
1002
+ callback?: string;
1003
+ /** Selector specifying which fields to include in a partial response. */
1004
+ fields?: string;
1005
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1006
+ key?: string;
1007
+ /** Required. Name of the policy issue. Format: accounts/{account}/policyIssues/{policy_issue} */
1008
+ name: string;
1009
+ /** OAuth 2.0 token for the current user. */
1010
+ oauth_token?: string;
1011
+ /** Returns response with indentations and line breaks. */
1012
+ prettyPrint?: boolean;
1013
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1014
+ quotaUser?: string;
1015
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1016
+ upload_protocol?: string;
1017
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1018
+ uploadType?: string;
1019
+ }): Request<PolicyIssue>;
1020
+ /** Lists all the policy issues for the specified account. */
1021
+ list(request?: {
1022
+ /** V1 error format. */
1023
+ '$.xgafv'?: string;
1024
+ /** OAuth access token. */
1025
+ access_token?: string;
1026
+ /** Data format for response. */
1027
+ alt?: string;
1028
+ /** JSONP */
1029
+ callback?: string;
1030
+ /** Selector specifying which fields to include in a partial response. */
1031
+ fields?: string;
1032
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1033
+ key?: string;
1034
+ /** OAuth 2.0 token for the current user. */
1035
+ oauth_token?: string;
1036
+ /** The maximum number of policy issues to include in the response, used for paging. If unspecified, at most 10000 policy issues will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000. */
1037
+ pageSize?: number;
1038
+ /** A page token, received from a previous `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPolicyIssues` must match the call that provided the page token. */
1039
+ pageToken?: string;
1040
+ /** Required. The account for which policy issues are being retrieved. Format: accounts/{account} */
1041
+ parent: string;
1042
+ /** Returns response with indentations and line breaks. */
1043
+ prettyPrint?: boolean;
1044
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1045
+ quotaUser?: string;
1046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1047
+ upload_protocol?: string;
1048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1049
+ uploadType?: string;
1050
+ }): Request<ListPolicyIssuesResponse>;
1051
+ }
954
1052
  interface SavedResource {
955
1053
  /** Generates a saved report. */
956
1054
  generate(request?: {
@@ -1400,6 +1498,7 @@ declare namespace gapi.client {
1400
1498
  adclients: AdclientsResource;
1401
1499
  alerts: AlertsResource;
1402
1500
  payments: PaymentsResource;
1501
+ policyIssues: PolicyIssuesResource;
1403
1502
  reports: ReportsResource;
1404
1503
  sites: SitesResource;
1405
1504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.adsense-v2",
3
- "version": "0.0.20240321",
3
+ "version": "0.0.20240326",
4
4
  "description": "TypeScript typings for AdSense Management API v2",
5
5
  "repository": {
6
6
  "type": "git",