google-indexing-script icon indicating copy to clipboard operation
google-indexing-script copied to clipboard

Can it work for multiple websites and multiples services account

Open I-JUST-TRY opened this issue 1 year ago • 1 comments

Hi and thank for that amazing work!

I apologize if the question seems stupid, but I have around 50 sites to index, each with approximately 1000 URLs. I have about 300 service accounts, and all the sites have their sitemaps properly set up in Google Search Console.

Do you know what modifications need to be made to the script so that after requesting indexing for 200 URLs, the script switches to a new service account to avoid being blocked by the API limits?

Same question to switch from 1 website to another

Thank you so much

I-JUST-TRY avatar Mar 29 '24 09:03 I-JUST-TRY

Let's summarize the issues and limitations of this to be sure of what we could do: We're using 2 APIs: Google Search Console Limits: 600 RPM by site | 15 000 RPM by project This would be of no interest here, since the project has a higher RPM than the site. It would only become problematic when used on several sites simultaneously using the same project.

However, this can happen, so the best thing to do would be to stop the script for a minute to make sure you've recovered your quota, or record the date of the last inspection, and if you notice that 600 URLs have been inspected in the last minute, pause it until you've recovered your usage.

Google Indexing Limits: 200 RPD by project Disadvantage: All service accounts must have site access permissions on the Seach Console dashboard. Advantage: RPD multiplied by the number of service accounts, which is not insignificant given the very low limit.

You'll need:

  • Add the possibility of putting several service accounts, for example, in a ./service_account folder.
  • Check from the outset whether the service accounts are valid and have access to the site.
  • Suggest changing the service account as soon as the limit is reached.

antoinekm avatar May 16 '24 10:05 antoinekm