Skip to content

Commit

Permalink
feat(adsense): update the API
Browse files Browse the repository at this point in the history
#### adsense:v2

The following keys were added:
- schemas.Account.properties.state.description
- schemas.Account.properties.state.enum
- schemas.Account.properties.state.enumDescriptions
- schemas.Account.properties.state.readOnly
- schemas.Account.properties.state.type
- schemas.AdClient.properties.state.description
- schemas.AdClient.properties.state.enum
- schemas.AdClient.properties.state.enumDescriptions
- schemas.AdClient.properties.state.readOnly
- schemas.AdClient.properties.state.type
  • Loading branch information
yoshi-automation authored and bcoe committed Apr 11, 2022
1 parent 092592e commit 1b9a1ce
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
36 changes: 35 additions & 1 deletion discovery/adsense-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@
}
}
},
"revision": "20220319",
"revision": "20220407",
"rootUrl": "https://adsense.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -1602,6 +1602,23 @@
"readOnly": true,
"type": "boolean"
},
"state": {
"description": "Output only. State of the account.",
"enum": [
"STATE_UNSPECIFIED",
"READY",
"NEEDS_ATTENTION",
"CLOSED"
],
"enumDescriptions": [
"State unspecified.",
"The account is open and ready to serve ads.",
"There are some issues with this account. Publishers should visit AdSense in order to fix the account.",
"The account is closed and can't serve ads."
],
"readOnly": true,
"type": "string"
},
"timeZone": {
"$ref": "TimeZone",
"description": "The account time zone, as used by reporting. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725)."
Expand All @@ -1626,6 +1643,23 @@
"description": "Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension. Present only if the ad client supports reporting.",
"readOnly": true,
"type": "string"
},
"state": {
"description": "Output only. State of the ad client.",
"enum": [
"STATE_UNSPECIFIED",
"READY",
"GETTING_READY",
"REQUIRES_REVIEW"
],
"enumDescriptions": [
"State unspecified.",
"The ad client is ready to show ads.",
"Running some checks on the ad client before it is ready to serve ads.",
"The ad client hasn't been checked yet. There are tasks pending before AdSense will start the review."
],
"readOnly": true,
"type": "string"
}
},
"type": "object"
Expand Down
9 changes: 9 additions & 0 deletions src/apis/adsense/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export namespace adsense_v2 {
* Output only. Whether this account is premium.
*/
premium?: boolean | null;
/**
* Output only. State of the account.
*/
state?: string | null;
/**
* The account time zone, as used by reporting. For more information, see [changing the time zone of your reports](https://support.google.com/adsense/answer/9830725).
*/
Expand All @@ -170,6 +174,10 @@ export namespace adsense_v2 {
* Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension. Present only if the ad client supports reporting.
*/
reportingDimensionId?: string | null;
/**
* Output only. State of the ad client.
*/
state?: string | null;
}
/**
* Representation of the AdSense code for a given ad client. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634).
Expand Down Expand Up @@ -671,6 +679,7 @@ export namespace adsense_v2 {
* // "name": "my_name",
* // "pendingTasks": [],
* // "premium": false,
* // "state": "my_state",
* // "timeZone": {}
* // }
* }
Expand Down

0 comments on commit 1b9a1ce

Please sign in to comment.