{"id":13512,"date":"2025-11-07T07:43:49","date_gmt":"2025-11-07T06:43:49","guid":{"rendered":"https:\/\/wisdomhub.staffino.com\/docs\/wisdom-hub-dokumentacia\/set-up-a-integracie\/google-my-business-gmb-integration\/"},"modified":"2025-11-11T11:30:57","modified_gmt":"2025-11-11T10:30:57","slug":"google-my-business-gmb-integration","status":"publish","type":"docs","link":"https:\/\/wisdomhub.staffino.com\/sk\/docs\/wisdom-hub-dokumentacia\/set-up-a-integracie\/google-my-business-gmb-integration\/","title":{"rendered":"Integr\u00e1cia Google My Business (GMB)"},"content":{"rendered":"\n<p>Aby ste \u00faspe\u0161ne prepojili svoj \u00fa\u010det Google My Business (GMB) s na\u0161ou platformou, je potrebn\u00e9 poskytn\u00fa\u0165 tieto \u00fadaje:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Client ID<\/strong><\/li>\n\n\n\n<li><strong>Client Secret<\/strong><\/li>\n\n\n\n<li><strong>Refresh Token<\/strong><\/li>\n\n\n\n<li><strong>Account ID (z v\u00e1\u0161ho GMB profilu)<\/strong><\/li>\n<\/ul>\n\n<p>Tieto \u00fadaje zabezpe\u010duj\u00fa bezpe\u010dn\u00fa autoriz\u00e1ciu cez OAuth 2.0 a umo\u017enia n\u00e1m pristupova\u0165 k va\u0161im GMB d\u00e1tam vo va\u0161om mene.<\/p>\n\n<p>Ni\u017e\u0161ie n\u00e1jdete podrobn\u00fd n\u00e1vod, ako tieto \u00fadaje z\u00edska\u0165.<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Vytvorte alebo pou\u017eite existuj\u00faci Google Cloud projekt<\/strong><\/h3>\n\n<ul class=\"wp-block-list\">\n<li>Otvorte <strong><a href=\"https:\/\/console.cloud.google.com\/apis\/dashboard?pli=1\" data-type=\"link\" data-id=\"https:\/\/console.cloud.google.com\/apis\/dashboard?pli=1\" target=\"_blank\" rel=\"noreferrer noopener\">Google Cloud Console<\/a><\/strong><\/li>\n\n\n\n<li>Vyberte existuj\u00faci projekt alebo kliknite na \u201eNew Project\u201c a vytvorte nov\u00fd<\/li>\n<\/ul>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Po\u017eiadajte o pr\u00edstup ku Google My Business API<\/strong><\/h3>\n\n<p>Pred pokra\u010dovan\u00edm je potrebn\u00e9 po\u017eiada\u0165 o pr\u00edstup ku Google Business Profile API.<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Nav\u0161t\u00edvte: <strong><a href=\"https:\/\/developers.google.com\/my-business\/content\/prereqs\" data-type=\"link\" data-id=\"https:\/\/developers.google.com\/my-business\/content\/prereqs\" target=\"_blank\" rel=\"noreferrer noopener\">Google Business Profile API Access<\/a><\/strong><\/li>\n\n\n\n<li>Postupujte pod\u013ea Kroku 3: \u201eComplete and submit the access request form.\u201c<\/li>\n<\/ul>\n\n<p>Schva\u013eovanie m\u00f4\u017ee trva\u0165 a\u017e 14 dn\u00ed.<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Nastavenie obrazovky s\u00fahlasu OAuth (OAuth Consent Screen)<\/strong><\/h3>\n\n<ul class=\"wp-block-list\">\n<li>V projekte cho\u010fte do: Menu \u2192 APIs &amp; Services \u2192 OAuth Consent Screen<\/li>\n\n\n\n<li>Zvo\u013ete User Type: <strong>External<\/strong> \u2192 a kliknite na Create<\/li>\n\n\n\n<li>Vypl\u0148te: n\u00e1zov aplik\u00e1cie, e-mail na podporu, e-mail na developera<\/li>\n\n\n\n<li>Kliknite na Save and Continue<\/li>\n\n\n\n<li>V \u010dasti Scopes kliknite na \u201eAdd or Remove Scopes\u201c<\/li>\n\n\n\n<li>Vlo\u017ete: <a href=\"https:\/\/www.googleapis.com\/auth\/business.manage\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.googleapis.com\/auth\/business.manage<\/a><\/li>\n\n\n\n<li>Pridajte ho do tabu\u013eky \u2192 kliknite na Update<\/li>\n\n\n\n<li>Presko\u010dte testovac\u00edch pou\u017e\u00edvate\u013eov (alebo pridajte, ak je to potrebn\u00e9), potom aplik\u00e1ciu publikujte.<\/li>\n<\/ul>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Vytvorenie OAuth 2.0 prihlasovac\u00edch \u00fadajov<\/strong><\/h3>\n\n<ul class=\"wp-block-list\">\n<li>Cho\u010fte do: Menu \u2192 APIs &amp; Services \u2192 Credentials<\/li>\n\n\n\n<li>Kliknite na Create Credentials \u2192 OAuth Client ID<\/li>\n\n\n\n<li>Nastavte Application Type: Web Application<\/li>\n\n\n\n<li>Pomenujte ho<\/li>\n\n\n\n<li>Pridajte tento Authorised Redirect URL: <a href=\"https:\/\/developers.google.com\/oauthplayground\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/developers.google.com\/oauthplayground<\/a><\/li>\n\n\n\n<li>Kliknite na Create<\/li>\n<\/ul>\n\n<p>Po vytvoren\u00ed dostanete svoj <strong>Client ID<\/strong> a <strong>Client Secret<\/strong>.<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Povolenie po\u017eadovan\u00fdch API<\/strong><\/h3>\n\n<ul class=\"wp-block-list\">\n<li>Cho\u010fte do: Menu \u2192 APIs &amp; Services \u2192 Library<\/li>\n\n\n\n<li>Povo\u013ete nasleduj\u00face API:<br\/>Google My Business API (https:\/\/mybusiness.googleapis.com) \u2013 vidite\u013en\u00e9 iba po udelen\u00ed pr\u00edstupu<br\/>mybusinessbusinesscalls.googleapis.com<br\/>mybusinessaccountmanagement.googleapis.com<br\/>mybusinessbusinessinformation.googleapis.com<\/li>\n<\/ul>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Generovanie Access Tokenu a Refresh Tokenu<\/strong><\/h3>\n\n<ul class=\"wp-block-list\">\n<li>Otvorte <a href=\"https:\/\/developers.google.com\/oauthplayground\/\" data-type=\"link\" data-id=\"https:\/\/developers.google.com\/oauthplayground\/\" target=\"_blank\" rel=\"noreferrer noopener\">OAuth 2.0 Playground<\/a><\/li>\n\n\n\n<li>Kliknite na ikonu ozuben\u00e9ho kolieska (vpravo hore) \u2192 povo\u013ete \u201eUse your own OAuth credentials\u201c<\/li>\n\n\n\n<li>Zadajte Client ID a Client Secret (zo 4. kroku)<\/li>\n\n\n\n<li>V kroku 1 vlo\u017ete tento scope: <a href=\"https:\/\/www.googleapis.com\/auth\/business.manage\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.googleapis.com\/auth\/business.manage<\/a><\/li>\n\n\n\n<li>Kliknite na Authorise APIs \u2192 prihl\u00e1ste sa do svojho Google \u00fa\u010dtu a povo\u013ete pr\u00edstup<\/li>\n\n\n\n<li>Kliknite na Exchange Authorisation Code for Tokens<\/li>\n<\/ul>\n\n<p>Potom dostanete <strong>Access Token<\/strong> a <strong>Refresh Token<\/strong>.<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>(Volite\u013en\u00e9) V\u00fdmena autoriza\u010dn\u00e9ho k\u00f3du za tokeny cez API<\/strong><\/h3>\n\n<p>Ak chcete tokeny z\u00edska\u0165 manu\u00e1lne, odo\u0161lite POST request na endpoint Googlu:<\/p>\n\n<p>POST https:\/\/oauth2.googleapis.com\/token<br\/>Content-Type: application\/x-www-form-urlencoded<\/p>\n\n<p>client_id=<br\/>client_secret=<br\/>code=<br\/>grant_type=authorization_code<br\/>redirect_uri=<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-light-green-cyan-color has-alpha-channel-opacity has-light-green-cyan-background-color has-background is-style-wide\"\/>\n\n<h3 class=\"wp-block-heading\"><strong>Final StepFin\u00e1lny krok<\/strong><\/h3>\n\n<p>Po dokon\u010den\u00ed n\u00e1m pros\u00edm za\u0161lite:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Client ID<\/li>\n\n\n\n<li>Client Secret<\/li>\n\n\n\n<li>Refresh Token<\/li>\n\n\n\n<li>GMB Account ID<\/li>\n<\/ul>\n\n<p>Integr\u00e1ciu so Staffino potom dokon\u010d\u00edme za v\u00e1s.<\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aby ste \u00faspe\u0161ne prepojili svoj \u00fa\u010det Google My Business (GMB) s na\u0161ou platformou, je potrebn\u00e9 poskytn\u00fa\u0165 tieto \u00fadaje: Tieto \u00fadaje zabezpe\u010duj\u00fa bezpe\u010dn\u00fa autoriz\u00e1ciu cez OAuth 2.0 a umo\u017enia n\u00e1m pristupova\u0165 k va\u0161im GMB d\u00e1tam vo va\u0161om mene. Ni\u017e\u0161ie n\u00e1jdete podrobn\u00fd n\u00e1vod, ako tieto \u00fadaje z\u00edska\u0165. Vytvorte alebo pou\u017eite existuj\u00faci Google Cloud projekt Po\u017eiadajte o pr\u00edstup [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":12736,"menu_order":59,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-13512","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/docs\/13512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/comments?post=13512"}],"version-history":[{"count":9,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/docs\/13512\/revisions"}],"predecessor-version":[{"id":13549,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/docs\/13512\/revisions\/13549"}],"up":[{"embeddable":true,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/docs\/12736"}],"wp:attachment":[{"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/media?parent=13512"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wisdomhub.staffino.com\/sk\/wp-json\/wp\/v2\/doc_tag?post=13512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}