class Conversionsources extends Resource (View source)

The "conversionsources" collection of methods.

Typical usage is:

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

Methods

create(string $merchantId, ConversionSource $postBody, array $optParams = [])

Creates a new conversion source. (conversionsources.create)

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

Archives an existing conversion source. It will be recoverable for 30 days.

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

Fetches a conversion source. (conversionsources.get)

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

Retrieves the list of conversion sources the caller has access to.

patch(string $merchantId, string $conversionSourceId, ConversionSource $postBody, array $optParams = [])

Updates information of an existing conversion source.

undelete(string $merchantId, string $conversionSourceId, UndeleteConversionSourceRequest $postBody, array $optParams = [])

Re-enables an archived conversion source. (conversionsources.undelete)

Details

ConversionSource create(string $merchantId, ConversionSource $postBody, array $optParams = [])

Creates a new conversion source. (conversionsources.create)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

ConversionSource $postBody
array $optParams

Optional parameters.

Return Value

ConversionSource

Exceptions

Exception

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

Archives an existing conversion source. It will be recoverable for 30 days.

This archiving behavior is not typical in the Content API and unique to this service. (conversionsources.delete)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

string $conversionSourceId

Required. The ID of the conversion source to be deleted.

array $optParams

Optional parameters.

Exceptions

Exception

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

Fetches a conversion source. (conversionsources.get)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

string $conversionSourceId

Required. The REST ID of the collection.

array $optParams

Optional parameters.

Return Value

ConversionSource

Exceptions

Exception

ListConversionSourcesResponse listConversionsources(string $merchantId, array $optParams = [])

Retrieves the list of conversion sources the caller has access to.

(conversionsources.listConversionsources)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

array $optParams

Optional parameters.

Return Value

ListConversionSourcesResponse

Exceptions

Exception

ConversionSource patch(string $merchantId, string $conversionSourceId, ConversionSource $postBody, array $optParams = [])

Updates information of an existing conversion source.

(conversionsources.patch)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

string $conversionSourceId

Required. The ID of the conversion source to be updated.

ConversionSource $postBody
array $optParams

Optional parameters.

Return Value

ConversionSource

Exceptions

Exception

undelete(string $merchantId, string $conversionSourceId, UndeleteConversionSourceRequest $postBody, array $optParams = [])

Re-enables an archived conversion source. (conversionsources.undelete)

Parameters

string $merchantId

Required. The ID of the account that owns the new conversion source.

string $conversionSourceId

Required. The ID of the conversion source to be undeleted.

UndeleteConversionSourceRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception