Google Shopping Merchant Reports V1beta Client - Class SearchRequest (0.4.0)

Reference documentation and code samples for the Google Shopping Merchant Reports V1beta Client class SearchRequest.

Request message for the ReportService.Search method.

Generated from protobuf message google.shopping.merchant.reports.v1beta.SearchRequest

Namespace

Google \ Shopping \ Merchant \ Reports \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account}

↳ query string

Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.

↳ page_size int

Optional. Number of ReportRows to retrieve in a single page. Defaults to the maximum of 1000. Values above 1000 are coerced to 1000.

↳ page_token string

Optional. Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from next_page_token in the previous response should be used.

getParent

Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account}

Returns
TypeDescription
string

setParent

Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQuery

Required. Query that defines a report to be retrieved.

For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.

Returns
TypeDescription
string

setQuery

Required. Query that defines a report to be retrieved.

For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Optional. Number of ReportRows to retrieve in a single page. Defaults to the maximum of 1000. Values above 1000 are coerced to 1000.

Returns
TypeDescription
int

setPageSize

Optional. Number of ReportRows to retrieve in a single page. Defaults to the maximum of 1000. Values above 1000 are coerced to 1000.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Optional. Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from next_page_token in the previous response should be used.

Returns
TypeDescription
string

setPageToken

Optional. Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from next_page_token in the previous response should be used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account}

Returns
TypeDescription
Google\Shopping\Merchant\Reports\V1beta\SearchRequest