Skip to content

Commit

Permalink
fix(content): update the API
Browse files Browse the repository at this point in the history
#### content:v2.1

The following keys were changed:
- resources.freelistingsprogram.methods.requestreview.description
- resources.shoppingadsprogram.methods.requestreview.description
- schemas.FreeListingsProgramStatus.properties.globalState.enumDescriptions
- schemas.FreeListingsProgramStatusRegionStatus.properties.disapprovalDate.description
- schemas.FreeListingsProgramStatusRegionStatus.properties.eligibilityStatus.enumDescriptions
- schemas.FreeListingsProgramStatusRegionStatus.properties.onboardingIssues.description
- schemas.FreeListingsProgramStatusRegionStatus.properties.reviewIneligibilityReason.enum
- schemas.FreeListingsProgramStatusRegionStatus.properties.reviewIneligibilityReason.enumDescriptions
- schemas.Product.properties.externalSellerId.description
- schemas.Promotion.properties.contentLanguage.description
- schemas.Promotion.properties.targetCountry.description
- schemas.ShoppingAdsProgramStatus.properties.globalState.enumDescriptions
- schemas.ShoppingAdsProgramStatusRegionStatus.properties.disapprovalDate.description
- schemas.ShoppingAdsProgramStatusRegionStatus.properties.eligibilityStatus.enumDescriptions
- schemas.ShoppingAdsProgramStatusRegionStatus.properties.onboardingIssues.description
- schemas.ShoppingAdsProgramStatusRegionStatus.properties.reviewIneligibilityReason.enum
- schemas.ShoppingAdsProgramStatusRegionStatus.properties.reviewIneligibilityReason.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 1, 2022
1 parent 91ac58a commit d6c0495
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 27 deletions.
48 changes: 30 additions & 18 deletions discovery/content-v2.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@
]
},
"requestreview": {
"description": "Requests a review for free listings program in a specific region. Important: This method is only whitelisted for selected merchants.",
"description": "Requests a review of free listings in a specific region Important: This method is only whitelisted for selected merchants.",
"flatPath": "{merchantId}/freelistingsprogram/requestreview",
"httpMethod": "POST",
"id": "content.freelistingsprogram.requestreview",
Expand Down Expand Up @@ -5788,7 +5788,7 @@
]
},
"requestreview": {
"description": "Requests a review for Shopping Ads program in a specific region.",
"description": "Requests a review of Shopping ads in a specific region.",
"flatPath": "{merchantId}/shoppingadsprogram/requestreview",
"httpMethod": "POST",
"id": "content.shoppingadsprogram.requestreview",
Expand All @@ -5815,7 +5815,7 @@
}
}
},
"revision": "20220317",
"revision": "20220325",
"rootUrl": "https://shoppingcontent.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -8142,7 +8142,7 @@
"enumDescriptions": [
"State is unknown.",
"Program is not enabled for any country.",
"No offers have been uploaded for any region.",
"No products have been uploaded for any region. Upload products to Merchant Center.",
"Program is enabled and offers are uploaded for at least one country."
],
"type": "string"
Expand All @@ -8162,7 +8162,7 @@
"id": "FreeListingsProgramStatusRegionStatus",
"properties": {
"disapprovalDate": {
"description": "Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.",
"description": "Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.",
"type": "string"
},
"eligibilityStatus": {
Expand All @@ -8181,14 +8181,14 @@
"If the account has no issues and review is completed successfully.",
"There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.",
"If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.",
"Account is under review. Deprecated: This state is not created.",
"Account is under review.",
"Account is waiting for review to start.",
"Program is currently onboarding. Upload valid offers to complete onboarding."
],
"type": "string"
},
"onboardingIssues": {
"description": "Must be fixed to be eligible for review.",
"description": "Issues that must be fixed to be eligible for review.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -8223,15 +8223,21 @@
"NOT_ENOUGH_OFFERS",
"IN_COOLDOWN_PERIOD",
"ALREADY_UNDER_REVIEW",
"NO_REVIEW_REQUIRED"
"NO_REVIEW_REQUIRED",
"WILL_BE_REVIEWED_AUTOMATICALLY",
"IS_RETIRED",
"ALREADY_REVIEWED"
],
"enumDescriptions": [
"Requesting a review from Google is not possible.",
"All onboarding issues needs to be fixed.",
"Not enough offers uploaded for this country.",
"Cooldown period applies. Wait until cooldown period ends.",
"Account is already under review.",
"No issues available to review."
"No issues available to review.",
"Account will be automatically reviewed at the end of the grace period.",
"Account is retired. Should not appear in MC.",
"Account was already reviewd."
],
"type": "string"
},
Expand Down Expand Up @@ -12416,7 +12422,7 @@
"type": "string"
},
"externalSellerId": {
"description": "Used by a marketplace to externally identify a seller.",
"description": "Required for multi-seller accounts. Use this attribute if you're a marketplace uploading products for various sellers to your multi-seller account.",
"type": "string"
},
"gender": {
Expand Down Expand Up @@ -13288,7 +13294,7 @@
"type": "array"
},
"contentLanguage": {
"description": "Required. The content language used as part of the unique identifier.",
"description": "Required. The content language used as part of the unique identifier. Currently only en value is supported.",
"type": "string"
},
"couponValueType": {
Expand Down Expand Up @@ -13513,7 +13519,7 @@
"type": "array"
},
"targetCountry": {
"description": "Required. The target country used as part of the unique identifier.",
"description": "Required. The target country used as part of the unique identifier. Currently only US and CA are supported.",
"type": "string"
}
},
Expand Down Expand Up @@ -15557,7 +15563,7 @@
"enumDescriptions": [
"State is unknown.",
"Program is not enabled for any country.",
"No offers have been uploaded for any region.",
"No products have been uploaded for any region. Upload products to Merchant Center.",
"Program is enabled and offers are uploaded for at least one country."
],
"type": "string"
Expand All @@ -15577,7 +15583,7 @@
"id": "ShoppingAdsProgramStatusRegionStatus",
"properties": {
"disapprovalDate": {
"description": "Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.",
"description": "Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.",
"type": "string"
},
"eligibilityStatus": {
Expand All @@ -15596,14 +15602,14 @@
"If the account has no issues and review is completed successfully.",
"There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.",
"If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.",
"Account is under review. Deprecated: This state is not created.",
"Account is under review.",
"Account is waiting for review to start.",
"Program is currently onboarding. Upload valid offers to complete onboarding."
],
"type": "string"
},
"onboardingIssues": {
"description": "Must be fixed to be eligible for review.",
"description": "Issues that must be fixed to be eligible for review.",
"items": {
"type": "string"
},
Expand Down Expand Up @@ -15638,15 +15644,21 @@
"NOT_ENOUGH_OFFERS",
"IN_COOLDOWN_PERIOD",
"ALREADY_UNDER_REVIEW",
"NO_REVIEW_REQUIRED"
"NO_REVIEW_REQUIRED",
"WILL_BE_REVIEWED_AUTOMATICALLY",
"IS_RETIRED",
"ALREADY_REVIEWED"
],
"enumDescriptions": [
"Requesting a review from Google is not possible.",
"All onboarding issues needs to be fixed.",
"Not enough offers uploaded for this country.",
"Cooldown period applies. Wait until cooldown period ends.",
"Account is already under review.",
"No issues available to review."
"No issues available to review.",
"Account will be automatically reviewed at the end of the grace period.",
"Account is retired. Should not appear in MC.",
"Account was already reviewd."
],
"type": "string"
},
Expand Down
18 changes: 9 additions & 9 deletions src/apis/content/v2.1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1909,15 +1909,15 @@ export namespace content_v2_1 {
*/
export interface Schema$FreeListingsProgramStatusRegionStatus {
/**
* Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
* Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
*/
disapprovalDate?: string | null;
/**
* Eligibility status of the standard free listing program.
*/
eligibilityStatus?: string | null;
/**
* Must be fixed to be eligible for review.
* Issues that must be fixed to be eligible for review.
*/
onboardingIssues?: string[] | null;
/**
Expand Down Expand Up @@ -5133,7 +5133,7 @@ export namespace content_v2_1 {
*/
expirationDate?: string | null;
/**
* Used by a marketplace to externally identify a seller.
* Required for multi-seller accounts. Use this attribute if you're a marketplace uploading products for various sellers to your multi-seller account.
*/
externalSellerId?: string | null;
/**
Expand Down Expand Up @@ -5815,7 +5815,7 @@ export namespace content_v2_1 {
*/
brandExclusion?: string[] | null;
/**
* Required. The content language used as part of the unique identifier.
* Required. The content language used as part of the unique identifier. Currently only en value is supported.
*/
contentLanguage?: string | null;
/**
Expand Down Expand Up @@ -5947,7 +5947,7 @@ export namespace content_v2_1 {
*/
shippingServiceNames?: string[] | null;
/**
* Required. The target country used as part of the unique identifier.
* Required. The target country used as part of the unique identifier. Currently only US and CA are supported.
*/
targetCountry?: string | null;
}
Expand Down Expand Up @@ -7422,15 +7422,15 @@ export namespace content_v2_1 {
*/
export interface Schema$ShoppingAdsProgramStatusRegionStatus {
/**
* Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
* Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
*/
disapprovalDate?: string | null;
/**
* Eligibility status of the Shopping Ads program.
*/
eligibilityStatus?: string | null;
/**
* Must be fixed to be eligible for review.
* Issues that must be fixed to be eligible for review.
*/
onboardingIssues?: string[] | null;
/**
Expand Down Expand Up @@ -16561,7 +16561,7 @@ export namespace content_v2_1 {
}

/**
* Requests a review for free listings program in a specific region. Important: This method is only whitelisted for selected merchants.
* Requests a review of free listings in a specific region Important: This method is only whitelisted for selected merchants.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -34353,7 +34353,7 @@ export namespace content_v2_1 {
}

/**
* Requests a review for Shopping Ads program in a specific region.
* Requests a review of Shopping ads in a specific region.
* @example
* ```js
* // Before running the sample:
Expand Down

0 comments on commit d6c0495

Please sign in to comment.