Google Indexing API Quickstart

Google Indexing API Quickstart
Google Indexing API Quickstart
The Indexing API allows any site owner to directly notify Google when pages are added or removed. This allows Google to schedule pages for a fresh crawl, which can lead to higher quality user traffic. Currently, the Indexing API can only be used to crawl pages with either a JobPosting or Broadcast Event embedded in a VideoObject. For websites with many short-lived pages like job postings or live stream videos, the Indexing API keeps content fresh in search results because it allows updates to be pushed individually.


Read this article before installing https://developers.google.com/search/apis/indexing-api/v3/quickstart
Setup your console.cloud.google.com API, download json file
--------------------------------------------------------
Tested in 2.3.0.2

Backup First.

1 : https://developers.google.com/search/apis/indexing-api/v3/quickstart
2 : Upload system folder to your root directory.
3 : Go to system backup, and upload "upload.sql", the code inside upload.sql will add a column to your product table.
4 : Go to installer and select google_indexing.ocmod.xml
5 : Add your google apis code into to system\vendor\vendor/bloggerpost-customer-id.json
"Do not change the file name; just copy and paste into this file bloggerpost-customer-id.json

Go to Google Cloud Platform

Start by heading over to the Google Cloud Platform directly from here.



Alternatively, you can click the Select a project drop-down and choose New Project from the popup that appears on the screen.



In the next screen, enter a project name that you can recognize later. And then click Create.



Enable Access to API

Once you create the project, you’d need to enable the project to access the API. In the next step, you’d see a screen as shown below. Confirm if the selected project is the one that we’ve created for Instant Indexing API, else select the drop-down at the top to change the project. Once you’ve selected the project, click Next.




In the next step, click the Enable option to enable the project to access the Instant Indexing API.





Once you’ve enabled it, you can close this tab.


Steps to Create Service Account

Next, you need to create a service account by opening the service accounts page.

Select the Project

You will first be prompted to select the API project you wish to create this service account in (the one created in the previous step).



Create Service Account

After selecting the project you wish to create a service account for, you’ll be taken to the following page, where you simply need to click the Create Service Account button highlighted below:



On the Create service account screen, enter a name and description for the newly created service account.

Select and copy the whole Service Account ID (the one that looks like an email address) because you will need it later. Then, click on the Done button at the bottom:



Manage Keys for Service Account
You will then be able to download the file that contains your API key. To do so, simply click the three vertical dots in the Actions column, and then select Manage keys as shown below:



Create New JSON Key for Service Account
You will then be taken to the following page where you can click Add Key and then select the Create new key option, as shown below:



Choose the default JSON format when prompted in the overlay, and click Create:

Upon clicking Create, the .json file will be automatically downloaded in your browser, meaning you’ve successfully created the API key & can proceed to the next step…

Add the Service Account as an Owner of Your Google Search Console Property

To do this, you’ll need to register and verify your website with the Google Search Console (if you haven’t done so already), which is super easy: just follow the recommended steps to verify ownership of your property.


Navigate to Users and Permissions in Google Search Console Settings
After verifying your property, open the Google Search Console, select your property on the left (if prompted), and then click on Settings near the bottom:



Note: If you’re configuring for a subdomain WordPress Multisite, then ensure that you’ve chosen the domain level property in Google Search Console, else you’d have to add the service account as owner separately for each subdomain property.

Click on Users and Permissions:




Add User to Your Search Console Property
Click on the three dots next to your account, and then click on Add User.



Delegate Service Account ID as Owner

A popup will now appear. Enter the Service account ID (the one you copied out earlier) in the Email address field. Ensure that you’ve provided Owner level Permission, and then click Add.



Now in a few moments, you should see the Service account listed as a new Owner.



You can use a single Project, Service Account, and JSON API Key across multiple sites, just make sure that the Service Account is added as Owner for all the sites in the Search Console.




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8

Last Update
5 Sep 2022

Created
2 Sep 2022
375 Downloads
13 Comments
Kilinc
Kilinc
Member since: 13 Oct 2012

View all extensions Get Support