class Datafeeds extends Resource (View source)

The "datafeeds" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $datafeeds = $contentService->datafeeds;

Methods

custombatch(DatafeedsCustomBatchRequest $postBody, array $optParams = [])

Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. (datafeeds.custombatch)

delete(string $merchantId, string $datafeedId, array $optParams = [])

Deletes a datafeed configuration from your Merchant Center account.

fetchnow(string $merchantId, string $datafeedId, array $optParams = [])

Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.

get(string $merchantId, string $datafeedId, array $optParams = [])

Retrieves a datafeed configuration from your Merchant Center account.

insert(string $merchantId, Datafeed $postBody, array $optParams = [])

Registers a datafeed configuration with your Merchant Center account.

listDatafeeds(string $merchantId, array $optParams = [])

Lists the configurations for datafeeds in your Merchant Center account.

update(string $merchantId, string $datafeedId, Datafeed $postBody, array $optParams = [])

Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource. (datafeeds.update)

Details

DatafeedsCustomBatchResponse custombatch(DatafeedsCustomBatchRequest $postBody, array $optParams = [])

Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. (datafeeds.custombatch)

Parameters

DatafeedsCustomBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

DatafeedsCustomBatchResponse

Exceptions

Exception

delete(string $merchantId, string $datafeedId, array $optParams = [])

Deletes a datafeed configuration from your Merchant Center account.

(datafeeds.delete)

Parameters

string $merchantId

The ID of the account that manages the datafeed. This account cannot be a multi-client account.

string $datafeedId

The ID of the datafeed.

array $optParams

Optional parameters.

Exceptions

Exception

DatafeedsFetchNowResponse fetchnow(string $merchantId, string $datafeedId, array $optParams = [])

Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.

(datafeeds.fetchnow)

Parameters

string $merchantId

The ID of the account that manages the datafeed. This account cannot be a multi-client account.

string $datafeedId

The ID of the datafeed to be fetched.

array $optParams

Optional parameters.

Return Value

DatafeedsFetchNowResponse

Exceptions

Exception

Datafeed get(string $merchantId, string $datafeedId, array $optParams = [])

Retrieves a datafeed configuration from your Merchant Center account.

(datafeeds.get)

Parameters

string $merchantId

The ID of the account that manages the datafeed. This account cannot be a multi-client account.

string $datafeedId

The ID of the datafeed.

array $optParams

Optional parameters.

Return Value

Datafeed

Exceptions

Exception

Datafeed insert(string $merchantId, Datafeed $postBody, array $optParams = [])

Registers a datafeed configuration with your Merchant Center account.

(datafeeds.insert)

Parameters

string $merchantId

The ID of the account that manages the datafeed. This account cannot be a multi-client account.

Datafeed $postBody
array $optParams

Optional parameters.

Return Value

Datafeed

Exceptions

Exception

DatafeedsListResponse listDatafeeds(string $merchantId, array $optParams = [])

Lists the configurations for datafeeds in your Merchant Center account.

(datafeeds.listDatafeeds)

Parameters

string $merchantId

The ID of the account that manages the datafeeds. This account cannot be a multi-client account.

array $optParams

Optional parameters.

Return Value

DatafeedsListResponse

Exceptions

Exception

Datafeed update(string $merchantId, string $datafeedId, Datafeed $postBody, array $optParams = [])

Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource. (datafeeds.update)

Parameters

string $merchantId

The ID of the account that manages the datafeed. This account cannot be a multi-client account.

string $datafeedId

The ID of the datafeed.

Datafeed $postBody
array $optParams

Optional parameters.

Return Value

Datafeed

Exceptions

Exception