Question

Google My Business error: Error executing custom action. No raw request domain filter provided

  • 7 June 2024
  • 1 reply
  • 19 views

Hello,
I’m trying to use Zapier to publish posts in  Google my Business, but have a trouble with languageCode attribute of the HTTP request that Zapier sends. There’s no way to choose a language, so in the output data, it is automatically set to English. I publish posts in Polish, which causes a funny bug  -  there’s a translate option appearing above my published post and it prompts me to translate it - from Polish (which it things it’s English) to Polish :D

I tried to make a custom action but I get an error. Can anybody take a look?

 


1 reply

Hi there,

To publish posts in Polish on Google My Business using Zapier and set the languageCode, follow these steps:


Create a Zap:

Set a trigger (e.g., new post in another app).

Add API Request (Beta):

URL: https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/localPosts

Method: POST

Headers:

Authorization: Bearer YOUR_ACCESS_TOKEN

Content-Type: application/json

Body:

{
  "summary": "Your post content here",
  "languageCode": "pl",
  "media": [
    {
      "mediaFormat": "PHOTO",
      "sourceUrl": "https://example.com/photo.jpg"
    }
  ]
}

 

Get Access Token: Ensure you have a valid access token from Google Cloud Console.
 

Replace Placeholders: Replace {accountId} and {locationId} with your actual account and location IDs.
 

Test: Run the Zap to ensure it works correctly.


For detailed steps, refer to Google My Business API documentation.

Reply