Definitive Guide to Ad Experience API

Definitive Guide to Ad Experience API

The Ad Experience API is a Tool in the Search Console that analyzes and reports whether any website is running a significant number of annoying ads.

ad experience api

Limitations of the Ad Experience Report

  • Currently the Ad Experience Report can show results for only your property.
  • It cannot show results for all other websites or Web properties you do not have website ownership.

Introducing the Ad Experience API

The Ad Experience API provides access to the Ad Experience database of Google through a programmatic interface.

Through this, you can check the status of any websites and whether they run an increasing number of annoying ads.

Benefits of Ad Experience API

As Search Engine Marketer, we often run our ads on other websites where we think our target audience congregates.

Before running ads, we can use the Ad Experience API to check on the Ad practices of the website.

Obviously, if the target website fails in the Ad experience test, we won’t consider it in our ad publishing list.

How it Works

First, we must enable the API in API Explorer in Google Cloud Console.

Go to the API Section and copy the appropriate API Key to be used to invoke the API.

Head over to the Official API Documentation. The API allows you to do two things.

  • Get list of violated sites.
  • Check the Abusive Experience Status of each Site.

For the List() method, simply copy the sample curl code provided.

Open Curl and insert the copied piece of code. Run it to obtain the result. Don’t forget to put your API Key in the appropriate portion of the code.

The program then returns all websites with the better Ads status “FAILING”.

Thus you get a list of all websites that are running a lot of annoying ads.

Now we access the code sample to get a single website’s ad experience status.

For the Get() method we need to input the encoded url of the desired website for example : www.wayfair.com

Copy the Sample Code thus generated.

Open Curl and insert the copied piece of code. Run it to obtain the result. Don’t forget to put your API Key at the appropriate portion of the code.

The program then returns better Ads status for “www.wayfair.com”.

Thus you get to know whether your website runs a lot of annoying ads or not.