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ę.

Wybierz Merchant Center z listy dostępnych integracji.

Wpisz Nazwa źródła danych, np. 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.

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.

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.

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.

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

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 Name | Mode | Type |
|---|---|---|
| name | NULLABLE | STRING |
| offerId | NULLABLE | STRING |
| contentLanguage | NULLABLE | STRING |
| feedLabel | NULLABLE | STRING |
| dataSource | NULLABLE | STRING |
| productAttributes | NULLABLE | RECORD |
| productAttributes.title | NULLABLE | STRING |
| productAttributes.description | NULLABLE | STRING |
| productAttributes.link | NULLABLE | STRING |
| productAttributes.imageLink | NULLABLE | STRING |
| productAttributes.additionalImageLinks | REPEATED | STRING |
| productAttributes.price | NULLABLE | RECORD |
| productAttributes.price.amountMicros | NULLABLE | INTEGER |
| productAttributes.price.currencyCode | NULLABLE | STRING |
| productAttributes.salePrice | NULLABLE | RECORD |
| productAttributes.salePrice.amountMicros | NULLABLE | INTEGER |
| productAttributes.salePrice.currencyCode | NULLABLE | STRING |
| productAttributes.salePriceEffectiveDate | NULLABLE | RECORD |
| productAttributes.salePriceEffectiveDate.startTime | NULLABLE | TIMESTAMP |
| productAttributes.salePriceEffectiveDate.endTime | NULLABLE | TIMESTAMP |
| productAttributes.costOfGoodsSold | NULLABLE | RECORD |
| productAttributes.costOfGoodsSold.amountMicros | NULLABLE | INTEGER |
| productAttributes.costOfGoodsSold.currencyCode | NULLABLE | STRING |
| productAttributes.availability | NULLABLE | STRING |
| productAttributes.availabilityDate | NULLABLE | TIMESTAMP |
| productAttributes.expirationDate | NULLABLE | TIMESTAMP |
| productAttributes.condition | NULLABLE | STRING |
| productAttributes.brand | NULLABLE | STRING |
| productAttributes.gtins | REPEATED | STRING |
| productAttributes.mpn | NULLABLE | STRING |
| productAttributes.googleProductCategory | NULLABLE | STRING |
| productAttributes.productTypes | REPEATED | STRING |
| productAttributes.itemGroupId | NULLABLE | STRING |
| productAttributes.customLabel0 | NULLABLE | STRING |
| productAttributes.customLabel1 | NULLABLE | STRING |
| productAttributes.customLabel2 | NULLABLE | STRING |
| productAttributes.customLabel3 | NULLABLE | STRING |
| productAttributes.customLabel4 | NULLABLE | STRING |
| productAttributes.color | NULLABLE | STRING |
| productAttributes.size | NULLABLE | STRING |
| productAttributes.sizeSystem | NULLABLE | STRING |
| productAttributes.sizeTypes | REPEATED | STRING |
| productAttributes.gender | NULLABLE | STRING |
| productAttributes.ageGroup | NULLABLE | STRING |
| productAttributes.material | NULLABLE | STRING |
| productAttributes.pattern | NULLABLE | STRING |
| productAttributes.promotionIds | REPEATED | STRING |
| productAttributes.shippingLabel | NULLABLE | STRING |
| productAttributes.multipack | NULLABLE | INTEGER |
| productAttributes.isBundle | NULLABLE | BOOLEAN |
| productAttributes.identifierExists | NULLABLE | BOOLEAN |
| customAttributes | REPEATED | RECORD |
| customAttributes.name | NULLABLE | STRING |
| customAttributes.value | NULLABLE | STRING |
| productStatus | NULLABLE | RECORD |
| productStatus.creationDate | NULLABLE | TIMESTAMP |
| productStatus.lastUpdateDate | NULLABLE | TIMESTAMP |
| productStatus.googleExpirationDate | NULLABLE | TIMESTAMP |
| productStatus.destinationStatuses | REPEATED | RECORD |
| productStatus.destinationStatuses.reportingContext | NULLABLE | STRING |
| productStatus.destinationStatuses.approvedCountries | REPEATED | STRING |
| productStatus.destinationStatuses.disapprovedCountries | REPEATED | STRING |
| productStatus.destinationStatuses.pendingCountries | REPEATED | STRING |
| productStatus.itemLevelIssues | REPEATED | RECORD |
| productStatus.itemLevelIssues.code | NULLABLE | STRING |
| productStatus.itemLevelIssues.severity | NULLABLE | STRING |
| productStatus.itemLevelIssues.resolution | NULLABLE | STRING |
| productStatus.itemLevelIssues.attribute | NULLABLE | STRING |
| productStatus.itemLevelIssues.reportingContext | NULLABLE | STRING |
| productStatus.itemLevelIssues.description | NULLABLE | STRING |
| productStatus.itemLevelIssues.detail | NULLABLE | STRING |
| productStatus.itemLevelIssues.documentation | NULLABLE | STRING |
| productStatus.itemLevelIssues.applicableCountries | REPEATED | STRING |
Schemat danych tabeli gmc_price_competitiveness
| Field Name | Mode | Type |
|---|---|---|
| id | NULLABLE | STRING |
| offerId | NULLABLE | STRING |
| title | NULLABLE | STRING |
| brand | NULLABLE | STRING |
| reportCountryCode | NULLABLE | STRING |
| categoryL1 | NULLABLE | STRING |
| categoryL2 | NULLABLE | STRING |
| categoryL3 | NULLABLE | STRING |
| categoryL4 | NULLABLE | STRING |
| categoryL5 | NULLABLE | STRING |
| productTypeL1 | NULLABLE | STRING |
| productTypeL2 | NULLABLE | STRING |
| productTypeL3 | NULLABLE | STRING |
| productTypeL4 | NULLABLE | STRING |
| productTypeL5 | NULLABLE | STRING |
| price | NULLABLE | RECORD |
| price.amountMicros | NULLABLE | INTEGER |
| price.currencyCode | NULLABLE | STRING |
| benchmarkPrice | NULLABLE | RECORD |
| benchmarkPrice.amountMicros | NULLABLE | INTEGER |
| benchmarkPrice.currencyCode | NULLABLE | STRING |
