Integracja Google Merchant Center z BigQuery

Dowiedz się, jak połączyć Google Merchant Center z Google BigQuery w WitCloud. Pobieraj dzienną migawkę produktów, ich statusów zatwierdzenia i konkurencyjności cen oraz analizuj swój feed produktowy.

Aktualizacja

Wprowadzenie

Ten moduł korzysta z Google Merchant Center API i zapisuje w Google Cloud BigQuery dwa zestawy danych: Twoje produkty (atrybuty, status zatwierdzenia w poszczególnych krajach i problemy na poziomie produktu) oraz raport konkurencyjności cen (Twoja cena na tle ceny referencyjnej). Dzięki nim przeanalizujesz i zoptymalizujesz swój feed produktowy.

Konfiguracja

Wykonaj poniższe kroki, aby połączyć Google Merchant Center z BigQuery. Po zakończeniu konfiguracji dane będą automatycznie przesyłane do Twojego projektu BigQuery.

Autoryzuj się kontem Google, które ma dostęp do kont Merchant Center, które chcesz pobierać — WitCloud pokazuje konta dostępne dla tego konta Google.

Dodanie integracji

Przejdź do Integracje w menu i kliknij Dodaj integrację.

Lista integracji z przyciskiem Dodaj integrację

Wybierz Merchant Center z listy dostępnych integracji.

Katalog integracji zawężony do Google Merchant Center

Wpisz Nazwa źródła danych, np. Merchant Center PL.

Pole Nazwa źródła danych wypełnione przykładową nazwą Merchant Center PL

Autoryzacja

Jeśli Google Merchant Center jest już autoryzowany, wybierz ten token z listy Wybierz autoryzację Merchant Center i pomiń logowanie do Google. Lista zawiera tylko tokeny Google, którym przyznano dostęp do Merchant Center.

Kliknij Autoryzuj.

Przycisk Autoryzuj obok pola Wybierz autoryzację Merchant Center

W oknie Google wybierz konto, którego chcesz użyć, i zaakceptuj uprawnienia, o które prosi WitCloud: zarządzanie listingami produktów i kontami w Google Shopping oraz wgląd w podstawowe informacje o profilu. Po powrocie do WitCloud nowy token zostanie wybrany automatycznie.

Konta i ustawienia zaawansowane

Otwórz listę Wybierz konta i wybierz konta Merchant Center do pobierania. Na liście są też subkonta konta zbiorczego (MCA). Każde konto jest pokazane jako nazwa, a po niej identyfikator w nawiasie.

Otwarta lista Wybierz konta z przykładowymi kontami Merchant Center

Możesz wybrać kilka kont naraz. Każde wybrane konto staje się osobnym konektorem o nazwie złożonej z Nazwa źródła danych, myślnika i konta (na przykład „Merchant Center PL - Demo Store PL (100000001)”), z własnymi tabelami w BigQuery.

Pole Wybierz konta z dwoma wybranymi przykładowymi kontami Merchant Center

Opcjonalnie kliknij Pokaż ustawienia zaawansowane:

  • Tabele do pobrania — domyślnie zaznaczone są wszystkie tabele (Products i Price Competitiveness); usuń te, których nie potrzebujesz. Wymagana jest co najmniej jedna tabela.
  • Odświeżanie danych (w godzinach) — co ile godzin dane są odświeżane. Wartość domyślna to 4, minimum to 4, a maksimum to 12. Ręczne uruchomienia w tym czasie są pomijane.

Ustawienia zaawansowane z polami Tabele do pobrania i Odświeżanie danych (w godzinach)

Kliknij Utwórz, aby zakończyć konfigurację.

Wypełnione ustawienia źródła danych z przyciskiem Utwórz

Gotowe! Dane z Google Merchant Center będą teraz synchronizowane z BigQuery.

Synchronizacja danych

Dane z Google Merchant Center to dzienna migawka bieżącego stanu Twoich produktów, więc nie ma kroku z danymi historycznymi: każde uruchomienie zastępuje dane z danego dnia najnowszym stanem, a historia buduje się dzień po dniu od momentu utworzenia konektora.

Harmonogram synchronizacji danych jest tworzony automatycznie i działa raz dziennie. Więcej informacji na ten temat znajdziesz tutaj.

Schemat danych

Każde konto ma własne tabele: nazwa tabeli kończy się identyfikatorem konektora, np. gmc_products_<collect id> i gmc_price_competitiveness_<collect id>. Rozwiń poniższe tabele, aby zobaczyć pełny schemat danych pobieranych z Google Merchant Center.

Schemat danych tabeli gmc_products
Field NameModeType
nameNULLABLESTRING
offerIdNULLABLESTRING
contentLanguageNULLABLESTRING
feedLabelNULLABLESTRING
dataSourceNULLABLESTRING
productAttributesNULLABLERECORD
productAttributes.titleNULLABLESTRING
productAttributes.descriptionNULLABLESTRING
productAttributes.linkNULLABLESTRING
productAttributes.imageLinkNULLABLESTRING
productAttributes.additionalImageLinksREPEATEDSTRING
productAttributes.priceNULLABLERECORD
productAttributes.price.amountMicrosNULLABLEINTEGER
productAttributes.price.currencyCodeNULLABLESTRING
productAttributes.salePriceNULLABLERECORD
productAttributes.salePrice.amountMicrosNULLABLEINTEGER
productAttributes.salePrice.currencyCodeNULLABLESTRING
productAttributes.salePriceEffectiveDateNULLABLERECORD
productAttributes.salePriceEffectiveDate.startTimeNULLABLETIMESTAMP
productAttributes.salePriceEffectiveDate.endTimeNULLABLETIMESTAMP
productAttributes.costOfGoodsSoldNULLABLERECORD
productAttributes.costOfGoodsSold.amountMicrosNULLABLEINTEGER
productAttributes.costOfGoodsSold.currencyCodeNULLABLESTRING
productAttributes.availabilityNULLABLESTRING
productAttributes.availabilityDateNULLABLETIMESTAMP
productAttributes.expirationDateNULLABLETIMESTAMP
productAttributes.conditionNULLABLESTRING
productAttributes.brandNULLABLESTRING
productAttributes.gtinsREPEATEDSTRING
productAttributes.mpnNULLABLESTRING
productAttributes.googleProductCategoryNULLABLESTRING
productAttributes.productTypesREPEATEDSTRING
productAttributes.itemGroupIdNULLABLESTRING
productAttributes.customLabel0NULLABLESTRING
productAttributes.customLabel1NULLABLESTRING
productAttributes.customLabel2NULLABLESTRING
productAttributes.customLabel3NULLABLESTRING
productAttributes.customLabel4NULLABLESTRING
productAttributes.colorNULLABLESTRING
productAttributes.sizeNULLABLESTRING
productAttributes.sizeSystemNULLABLESTRING
productAttributes.sizeTypesREPEATEDSTRING
productAttributes.genderNULLABLESTRING
productAttributes.ageGroupNULLABLESTRING
productAttributes.materialNULLABLESTRING
productAttributes.patternNULLABLESTRING
productAttributes.promotionIdsREPEATEDSTRING
productAttributes.shippingLabelNULLABLESTRING
productAttributes.multipackNULLABLEINTEGER
productAttributes.isBundleNULLABLEBOOLEAN
productAttributes.identifierExistsNULLABLEBOOLEAN
customAttributesREPEATEDRECORD
customAttributes.nameNULLABLESTRING
customAttributes.valueNULLABLESTRING
productStatusNULLABLERECORD
productStatus.creationDateNULLABLETIMESTAMP
productStatus.lastUpdateDateNULLABLETIMESTAMP
productStatus.googleExpirationDateNULLABLETIMESTAMP
productStatus.destinationStatusesREPEATEDRECORD
productStatus.destinationStatuses.reportingContextNULLABLESTRING
productStatus.destinationStatuses.approvedCountriesREPEATEDSTRING
productStatus.destinationStatuses.disapprovedCountriesREPEATEDSTRING
productStatus.destinationStatuses.pendingCountriesREPEATEDSTRING
productStatus.itemLevelIssuesREPEATEDRECORD
productStatus.itemLevelIssues.codeNULLABLESTRING
productStatus.itemLevelIssues.severityNULLABLESTRING
productStatus.itemLevelIssues.resolutionNULLABLESTRING
productStatus.itemLevelIssues.attributeNULLABLESTRING
productStatus.itemLevelIssues.reportingContextNULLABLESTRING
productStatus.itemLevelIssues.descriptionNULLABLESTRING
productStatus.itemLevelIssues.detailNULLABLESTRING
productStatus.itemLevelIssues.documentationNULLABLESTRING
productStatus.itemLevelIssues.applicableCountriesREPEATEDSTRING
Schemat danych tabeli gmc_price_competitiveness
Field NameModeType
idNULLABLESTRING
offerIdNULLABLESTRING
titleNULLABLESTRING
brandNULLABLESTRING
reportCountryCodeNULLABLESTRING
categoryL1NULLABLESTRING
categoryL2NULLABLESTRING
categoryL3NULLABLESTRING
categoryL4NULLABLESTRING
categoryL5NULLABLESTRING
productTypeL1NULLABLESTRING
productTypeL2NULLABLESTRING
productTypeL3NULLABLESTRING
productTypeL4NULLABLESTRING
productTypeL5NULLABLESTRING
priceNULLABLERECORD
price.amountMicrosNULLABLEINTEGER
price.currencyCodeNULLABLESTRING
benchmarkPriceNULLABLERECORD
benchmarkPrice.amountMicrosNULLABLEINTEGER
benchmarkPrice.currencyCodeNULLABLESTRING