Skip to content

Commit

Permalink
feat(adexperiencereport): update the API
Browse files Browse the repository at this point in the history
#### adexperiencereport:v1
The following keys were added:
- schemas.PlatformSummary.properties.region.items.enumDescriptions

The following keys were changed:
- resources.sites.methods.get.parameters.name.description
- resources.violatingSites.methods.list.description
- schemas.PlatformSummary.properties.enforcementTime.description
- schemas.PlatformSummary.properties.filterStatus.description
- schemas.PlatformSummary.properties.region.description
- schemas.PlatformSummary.properties.reportUrl.description
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 4, 2020
1 parent 330dee0 commit 32bddd1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
20 changes: 13 additions & 7 deletions discovery/adexperiencereport-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
],
"parameters": {
"name": {
"description": "Required. The name of the site whose summary to get, e.g.\n`sites/http%3A%2F%2Fwww.google.com%2F`.\n\nFormat: `sites/{site}`",
"description": "Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`",
"location": "path",
"pattern": "^sites/[^/]+$",
"required": true,
Expand All @@ -124,7 +124,7 @@
"violatingSites": {
"methods": {
"list": {
"description": "Lists sites that are failing in the Ad Experience Report on at least one\nplatform.",
"description": "Lists sites that are failing in the Ad Experience Report on at least one platform.",
"flatPath": "v1/violatingSites",
"httpMethod": "GET",
"id": "adexperiencereport.violatingSites.list",
Expand All @@ -138,7 +138,7 @@
}
}
},
"revision": "20200504",
"revision": "20200803",
"rootUrl": "https://adexperiencereport.googleapis.com/",
"schemas": {
"PlatformSummary": {
Expand All @@ -162,12 +162,12 @@
"type": "string"
},
"enforcementTime": {
"description": "The time at which\n[enforcement](https://support.google.com/webtools/answer/7308033) against\nthe site began or will begin on this platform.\n\nNot set when the\nfilter_status\nis OFF.",
"description": "The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.",
"format": "google-datetime",
"type": "string"
},
"filterStatus": {
"description": "The site's [enforcement\nstatus](https://support.google.com/webtools/answer/7308033) on this\nplatform.",
"description": "The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform.",
"enum": [
"UNKNOWN",
"ON",
Expand All @@ -190,7 +190,7 @@
"type": "string"
},
"region": {
"description": "The site's regions on this platform.\n\nNo longer populated, because there is no longer any semantic difference\nbetween sites in different regions.",
"description": "The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.",
"enumDescriptions": [
"Ad standard not yet defined for your region.",
"Region A.",
Expand All @@ -204,12 +204,18 @@
"REGION_B",
"REGION_C"
],
"enumDescriptions": [
"Ad standard not yet defined for your region.",
"Region A.",
"Region B.",
"Region C."
],
"type": "string"
},
"type": "array"
},
"reportUrl": {
"description": "A link to the full Ad Experience Report for the site on this platform..\n\nNot set in\nViolatingSitesResponse.\n\nNote that you must complete the [Search Console verification\nprocess](https://support.google.com/webmasters/answer/9008080) for the site\nbefore you can access the full report.",
"description": "A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.",
"type": "string"
},
"underReview": {
Expand Down
15 changes: 6 additions & 9 deletions src/apis/adexperiencereport/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export namespace adexperiencereport_v1 {
*/
betterAdsStatus?: string | null;
/**
* The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
* The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
*/
enforcementTime?: string | null;
/**
Expand All @@ -150,11 +150,11 @@ export namespace adexperiencereport_v1 {
*/
lastChangeTime?: string | null;
/**
* The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
* The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
*/
region?: string[] | null;
/**
* A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
* A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
*/
reportUrl?: string | null;
/**
Expand Down Expand Up @@ -222,10 +222,7 @@ export namespace adexperiencereport_v1 {
*
* // Do the magic
* const res = await adexperiencereport.sites.get({
* // Required. The name of the site whose summary to get, e.g.
* // `sites/http%3A%2F%2Fwww.google.com%2F`.
* //
* // Format: `sites/{site}`
* // Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* name: 'sites/my-site',
* });
* console.log(res.data);
Expand All @@ -247,7 +244,7 @@ export namespace adexperiencereport_v1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -334,7 +331,7 @@ export namespace adexperiencereport_v1 {

export interface Params$Resource$Sites$Get extends StandardParameters {
/**
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
*/
name?: string;
}
Expand Down

0 comments on commit 32bddd1

Please sign in to comment.