Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't list products in the dashboard product menu creating products vie API #3

Closed
unclexo opened this issue Jan 25, 2020 · 2 comments
Closed

Comments

@unclexo
Copy link

unclexo commented Jan 25, 2020

Here is the code below for creating products I use. If I created product this way that would be found to the Posts menu but not in the Products menu. Furthermore, if I created an event post that would be found in the Dashboard > Posts and then Events tab. Please let me know why this is happening. Thanks in advance.

    $lowerPrice = new Google_Service_MyBusiness_Money;
    $lowerPrice->setCurrencyCode($currency);
    $lowerPrice->setUnits($lowPrice);

    $upperPrice = new Google_Service_MyBusiness_Money;
    $upperPrice->setCurrencyCode($currency);
    $upperPrice->setUnits($highPrice);

    // Prepares local product post
    $localPostProduct = new Google_Service_MyBusiness_LocalPostProduct;
    $localPostProduct->setLowerPrice($lowerPrice);
    $localPostProduct->setUpperPrice($upperPrice);
    $localPostProduct->setProductName($title);

    // Prepares local post
    $localPost = new Google_Service_MyBusiness_LocalPost;
    $localPost->setProduct($localPostProduct);
    $localPost->setSummary($summary);
    $localPost->setMedia($media);

    $localPosts = $this->myBusiness->accounts_locations_localPosts;
    return $localPosts->create($parent, $localPost);
@ahajalie
Copy link

Products are currently not supported via the API. See the reference documentation for moer info.

https://developers.google.com/my-business/reference/rest

@grekpg
Copy link

grekpg commented Dec 7, 2020

When it will be available in api? And why You just change API without any information. Our API stop working without any info...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants