Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.
getTakeFromDataSources
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
Required. The list of data sources linked in the default
rule.
This list is ordered by the default rule priority of joining the data.
It might include none or multiple references to self and supplemental
data sources.
The list must not be empty.
To link the data source to the default rule, you need to add a
new reference to this list (in sequential order).
To unlink the data source from the default rule, you need to
remove the given reference from this list.
Changing the order of this list will result in changing the priority of
data sources in the default rule.
For example, providing the following list: [1001, self] will
take attribute values from supplemental data source 1001, and fallback
to self if the attribute is not set in 1001.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant DataSources V1 Client - Class DefaultRule (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-datasources/latest/V1.PrimaryProductDataSource.DefaultRule)\n- [0.6.0](/php/docs/reference/shopping-merchant-datasources/0.6.0/V1.PrimaryProductDataSource.DefaultRule)\n- [0.5.1](/php/docs/reference/shopping-merchant-datasources/0.5.1/V1.PrimaryProductDataSource.DefaultRule)\n- [0.4.0](/php/docs/reference/shopping-merchant-datasources/0.4.0/V1.PrimaryProductDataSource.DefaultRule)\n- [0.3.1](/php/docs/reference/shopping-merchant-datasources/0.3.1/V1.PrimaryProductDataSource.DefaultRule)\n- [0.2.3](/php/docs/reference/shopping-merchant-datasources/0.2.3/V1.PrimaryProductDataSource.DefaultRule)\n- [0.1.0](/php/docs/reference/shopping-merchant-datasources/0.1.0/V1.PrimaryProductDataSource.DefaultRule) \nReference documentation and code samples for the Google Shopping Merchant DataSources V1 Client class DefaultRule.\n\nDefault rule management of the data source.\n\nGenerated from protobuf message `google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRule`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ DataSources \\\\ V1 \\\\ PrimaryProductDataSource\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTakeFromDataSources\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\n\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\nThe list must not be empty.\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`.\n\n### setTakeFromDataSources\n\nRequired. The list of data sources linked in the [default\nrule](https://support.google.com/merchants/answer/7450276).\n\nThis list is ordered by the default rule priority of joining the data.\nIt might include none or multiple references to `self` and supplemental\ndata sources.\nThe list must not be empty.\nTo link the data source to the default rule, you need to add a\nnew reference to this list (in sequential order).\nTo unlink the data source from the default rule, you need to\nremove the given reference from this list.\nChanging the order of this list will result in changing the priority of\ndata sources in the default rule.\nFor example, providing the following list: \\[`1001`, `self`\\] will\ntake attribute values from supplemental data source `1001`, and fallback\nto `self` if the attribute is not set in `1001`."]]