Skip to content

Commit bd69999

Browse files
feat: [google-shopping-merchant-reports] Add click potential to Reports sub-API (#12557)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 623133729 Source-Link: googleapis/googleapis@66ae983 Source-Link: googleapis/googleapis-gen@edb7e58 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJlcG9ydHMvLk93bEJvdC55YW1sIiwiaCI6ImVkYjdlNTgwYWNkY2E2YTM5Njg5OWQ0ZDBlYWQ4YzMyODMxNTMwNTUifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 93b90df commit bd69999

1 file changed

Lines changed: 53 additions & 2 deletions

File tree

  • packages/google-shopping-merchant-reports/google/shopping/merchant_reports_v1beta/types

packages/google-shopping-merchant-reports/google/shopping/merchant_reports_v1beta/types/reports.py

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class SearchRequest(proto.Message):
6363
fields.
6464
page_size (int):
6565
Optional. Number of ``ReportRows`` to retrieve in a single
66-
page. Defaults to the maximum of 1000. Values above 1000 are
67-
coerced to 1000.
66+
page. Defaults to 1000. Values above 5000 are coerced to
67+
5000.
6868
page_token (str):
6969
Optional. Token of the page to retrieve. If not specified,
7070
the first page of results is returned. In order to request
@@ -677,18 +677,30 @@ class ProductView(proto.Message):
677677
**Only selected attributes of this field (for example,
678678
``item_issues.severity.aggregated_severity``) can be used
679679
for filtering the results.**
680+
click_potential (google.shopping.merchant_reports_v1beta.types.ProductView.ClickPotential):
681+
Estimated performance potential compared to
682+
highest performing products of the merchant.
683+
click_potential_rank (int):
684+
Rank of the product based on its click potential. A product
685+
with ``click_potential_rank`` 1 has the highest click
686+
potential among the merchant's products that fulfill the
687+
search query conditions.
688+
689+
This field is a member of `oneof`_ ``_click_potential_rank``.
680690
"""
681691

682692
class AggregatedReportingContextStatus(proto.Enum):
683693
r"""Status of the product aggregated for all reporting contexts.
684694
685695
Here's an example of how the aggregated status is computed:
686696
697+
```
687698
Free listings \| Shopping Ads \| Status
688699
--------------|--------------|------------------------------
689700
Approved \| Approved \| ELIGIBLE Approved \| Pending \| ELIGIBLE
690701
Approved \| Disapproved \| ELIGIBLE_LIMITED Pending \| Pending \|
691702
PENDING Disapproved \| Disapproved \| NOT_ELIGIBLE_OR_DISAPPROVED
703+
```
692704
693705
Values:
694706
AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED (0):
@@ -712,6 +724,35 @@ class AggregatedReportingContextStatus(proto.Enum):
712724
ELIGIBLE_LIMITED = 3
713725
ELIGIBLE = 4
714726

727+
class ClickPotential(proto.Enum):
728+
r"""A product's `click
729+
potential <https://support.google.com/merchants/answer/188488>`__
730+
estimates its performance potential compared to highest performing
731+
products of the merchant. Click potential of a product helps
732+
merchants to prioritize which products to fix and helps them
733+
understand how products are performing against their potential.
734+
735+
Values:
736+
CLICK_POTENTIAL_UNSPECIFIED (0):
737+
Unknown predicted clicks impact.
738+
LOW (1):
739+
Potential to receive a low number of clicks
740+
compared to the highest performing products of
741+
the merchant.
742+
MEDIUM (2):
743+
Potential to receive a moderate number of
744+
clicks compared to the highest performing
745+
products of the merchant.
746+
HIGH (3):
747+
Potential to receive a similar number of
748+
clicks as the highest performing products of the
749+
merchant.
750+
"""
751+
CLICK_POTENTIAL_UNSPECIFIED = 0
752+
LOW = 1
753+
MEDIUM = 2
754+
HIGH = 3
755+
715756
class ItemIssue(proto.Message):
716757
r"""Item issue associated with the product.
717758
@@ -1022,6 +1063,16 @@ class IssueSeverityPerReportingContext(proto.Message):
10221063
number=27,
10231064
message=ItemIssue,
10241065
)
1066+
click_potential: ClickPotential = proto.Field(
1067+
proto.ENUM,
1068+
number=29,
1069+
enum=ClickPotential,
1070+
)
1071+
click_potential_rank: int = proto.Field(
1072+
proto.INT64,
1073+
number=30,
1074+
optional=True,
1075+
)
10251076

10261077

10271078
class PriceCompetitivenessProductView(proto.Message):

0 commit comments

Comments
 (0)