Skip to content

Commit 3dbe351

Browse files
feat: [ShoppingMerchantReviews] adds fields is_incentivized_review and is_verified_purchase to message ProductReviewAttributes (#8430)
* docs: A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed docs: A comment for field `review_language` in message `.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes` is changed docs: A comment for field `content` in message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` is changed feat: A new field `is_verified_purchase` is added to message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` feat: A new field `is_incentivized_review` is added to message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` PiperOrigin-RevId: 781457438 Source-Link: googleapis/googleapis@d60f969 Source-Link: googleapis/googleapis-gen@eac475d Copy-Tag: eyJwIjoiU2hvcHBpbmdNZXJjaGFudFJldmlld3MvLk93bEJvdC55YW1sIiwiaCI6ImVhYzQ3NWQ3YzRmNmIzMTEwOWEwZDg1Zjc1NmQzYjlhYzM4MThjNTQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9bd2a1a commit 3dbe351

8 files changed

Lines changed: 115 additions & 30 deletions

File tree

ShoppingMerchantReviews/metadata/V1Beta/Merchantreviews.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
134 Bytes
Binary file not shown.

ShoppingMerchantReviews/samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use Google\Shopping\Merchant\Reviews\V1beta\Client\MerchantReviewsServiceClient;
2828
use Google\Shopping\Merchant\Reviews\V1beta\InsertMerchantReviewRequest;
2929
use Google\Shopping\Merchant\Reviews\V1beta\MerchantReview;
30-
use Google\Shopping\Type\CustomAttribute;
3130

3231
/**
3332
* Inserts a review for your Merchant Center account. If the review
@@ -51,10 +50,8 @@ function insert_merchant_review_sample(
5150
$merchantReviewsServiceClient = new MerchantReviewsServiceClient();
5251

5352
// Prepare the request message.
54-
$merchantReviewCustomAttributes = [new CustomAttribute()];
5553
$merchantReview = (new MerchantReview())
56-
->setMerchantReviewId($merchantReviewMerchantReviewId)
57-
->setCustomAttributes($merchantReviewCustomAttributes);
54+
->setMerchantReviewId($merchantReviewMerchantReviewId);
5855
$request = (new InsertMerchantReviewRequest())
5956
->setParent($parent)
6057
->setMerchantReview($merchantReview)

ShoppingMerchantReviews/src/V1beta/MerchantReview.php

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantReviews/src/V1beta/MerchantReviewAttributes.php

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantReviews/src/V1beta/ProductReviewAttributes.php

Lines changed: 99 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantReviews/tests/Unit/V1beta/Client/MerchantReviewsServiceClientTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ public function insertMerchantReviewTest()
226226
$merchantReview = new MerchantReview();
227227
$merchantReviewMerchantReviewId = 'merchantReviewMerchantReviewId-1175491621';
228228
$merchantReview->setMerchantReviewId($merchantReviewMerchantReviewId);
229-
$merchantReviewCustomAttributes = [];
230-
$merchantReview->setCustomAttributes($merchantReviewCustomAttributes);
231229
$dataSource = 'dataSource-1333894576';
232230
$request = (new InsertMerchantReviewRequest())
233231
->setParent($parent)
@@ -278,8 +276,6 @@ public function insertMerchantReviewExceptionTest()
278276
$merchantReview = new MerchantReview();
279277
$merchantReviewMerchantReviewId = 'merchantReviewMerchantReviewId-1175491621';
280278
$merchantReview->setMerchantReviewId($merchantReviewMerchantReviewId);
281-
$merchantReviewCustomAttributes = [];
282-
$merchantReview->setCustomAttributes($merchantReviewCustomAttributes);
283279
$dataSource = 'dataSource-1333894576';
284280
$request = (new InsertMerchantReviewRequest())
285281
->setParent($parent)

0 commit comments

Comments
 (0)