I’m trying to update/patch a specific GMB Local Post using curl. For this example, I’m only trying to update the summary of the post. Here’s my code: $url = "https://mybusiness.googleapis.com/v4/".$postId."?updateMask=1"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ‘PATCH’); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $pQuery = array( "summary" => $postMessage ); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($pQuery)); curl_setopt($ch, CURLOPT_HTTPHEADER, array( ‘Authorization: Bearer ‘.$access_token.”, ..
I have created a report where I want to also include all the insights of a Google My Business account. I have already been approved and have access to the GMB API with no problem. The only thing is now that I have full access, how do I successfully query it so I can get ..
estoy queriendo utilizar la API de Google My Business accediendo a los negocios a través de una cuenta de servicio de la API. Lo que respecta a la autenticación con las claves de la cuenta de servicio he logrado hacerlo. El problema surge cuando quiero ligar negocios a esta cuenta para así acceder a los ..
I’m trying to get the values of a single GMB location by it’s name. For now, I’m able to retrieve all locations of an account with this bit of code: $locationsList = $locations->listAccountsLocations($account->name)->getLocations(); However, I can’t get a single location by name. I have tried to pass the location name in the getLocations() function but ..
Can I get photos in reviews from Google My Business via API? And if yes? How to do that? I have tried to get reviews via API but it does not contain media :(( I read this all day but no hope https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews#Review Sourc..
thanks for reading! I’m semi-proficient with the PHP Google my business library for reporting but I can’t find any documentation on retrieving the "Queries used to find your business" data which is displayed in the GMB dashboard (screenshot below), Is there a way to retrieve this data? Sourc..
I am trying to make Google My Business localPost for topicType offer in PHP. I installed google/apiclient 2.7. Also, I have client library from GMB site as following. https://developers.google.com/my-business/samples/google-api-services-mybusiness-v4p7-php-rev-20200824-1.zip I made following source code. $offer = new Google_Service_MyBusiness_LocalPostOffer(); $offer->setCouponCode($couponCode); $offer->setTermsConditions($termsCondition); $offer->setRedeemOnlineUrl($redeemOnlineUrl); $schedule = new Google_Service_MyBusiness_TimeInterval(); $date = new Google_Service_MyBusiness_Date(); $date->setDay(6); $date->setMonth(10); $date->setYear(2020); $time = new ..
I want to update opening hours on GMB account from WordPress web. Now I want to connect from my localhost to GMB API and start developing this feature. I have 3 URL where I want to try functionality – my localhost, dev server and production. I made page template for WP theme, made page with ..
I have to try to fetch review using google my business API but I am getting method not found. If I use the post method then it returns null. Here is my curl code. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_end_point_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Authorization: Bearer ‘. $authorization,’Content-Type: ..