• Resolved adamsol

    (@adamsoleymani)


    Hi,
    for some reason, the Base URL requests Quotas is getting max out after I add a new album to a page. Do anyone know what can be causing this to happen. I don’t have that much traffic to the site.

    Thanks,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Please provide me with a URL where this happens along with the shortcode that you are using.

    Sayontan,
    For some reason I am getting emails of all of your replies to folks for messages I did not originate. Is there a way to turn this off. Just received this message.

    Thread Starter adamsol

    (@adamsoleymani)

    Here is the shortcode – [gallery type='google' view='photos' album_id='AC7mmJQMCrWyMklCU8iJ5ibuI6zquK8otsdrCDQzqC3KsqD_hmx7-KkLW5Es1CbOzJfY2FNbOwMx' columns='auto' count='103' more='view more' main_size='1600' layout='masonry']

    Here is the page – https://moshava.org/2019/the-buses-have-arrived-2/

    Thanks for the quick reply back.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Have you had a large number of reloads for your page? How many requests does it say you have hit? What is the quota allocated to you? You should have 10000. I am not sure if you have a plugin that is trying to reprocess the shortcode thereby causing multiple parallel calls, but the possibility I see is that the quota is being exceeded on a “calls per minute” basis rather than for your daily quota.

    If you can confirm that you are not exceeding your daily quota of 10,000, I would suggest setting the count to 20 or 25 rather than 103 (which gets reset to 100 by Photonic). See if that makes a difference.

    @sharstro60,
    I don’t know how forum subscriptions here work, but it is likely that you have subscribed to the forum for Photonic as a whole.

    Thread Starter adamsol

    (@adamsoleymani)

    I am not sure of any of the traffic to the page. I am waiting for the client to give me access to the google analytics data.

    Do you think the issue is being caused because I am trying to load too many images all at once? The album has 800 pictures in it.

    Here is a screenshot of the page https://moshava.org/wp-content/uploads/2019/06/Screen-Shot-2019-06-26-at-8.58.16-PM.png

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – so it looks like this is something new that Google has added. Earlier Google only had the “All requests per day” limit of 10000, which counted how many API calls you made. Photonic has control over that, and unless you are reeling under a DDOS attack you wouldn’t face an issue with it.

    But it looks like now Google has introduced a new category called “Base URL requests per day” set at 75000. As per its documentation:

    The quota limit for requests to access media bytes (by loading a photo or video from a base URL) is 75,000 requests per project per day.

    So each photo you access counts towards this limit. If you show 100 photos in a page and reload the page 10 times you incur 1000 of your calls in this category.

    That would mean that your guess about trying to load too many images causing this issue is mostly correct. Google cannot return more than 100 photos in one shot, so Photonic will curtail your count parameter at 100 even if you pass a higher number. But each time you click on “View More” you start adding up the hits.

    This is quite frustrating as Google happens to have the most restrictive policies among all photo sources – no more than 50 albums or 100 photos returned in a single shot, and now each photo counts towards a limit. None of the other photo sharing services does this.

    Thread Starter adamsol

    (@adamsoleymani)

    Is there any workaround or Calling google to increasing the Quotas?

    Thanks,

    Plugin Author Sayontan Sinha

    (@sayontan)

    Unfortunately I don’t see a simple workaround. Short of having all these photos downloaded automatically to your WP installation (that defeats the purpose of having these on Google Photos), there is no way in which a base URL call can be avoided.

    Not sure if this will help but try activating JetPack’s CDN for photos (don’t activate lazy-loading; just activate the CDN). This might be able to cache photos on a different server and after that happens, you will not be dinged the additional call.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘google cloud platform Quotas for photo API’ is closed to new replies.