Push the boundaries of what DataForSEO can do
Learn about the latest updates

Subscribe To Our Newsletter

Back

New Fields for Paid Element in Google SERP API!

February,16 2023 20:19:08

Improvement
SERP API
New Fields for Paid Element in Google SERP API!

We’re happy to share a small update of the Paid element in Google SERP API!

Now you can obtain more information about an ad that pops in the results. By reviewing the new is_image and is_video fields, you’ll instantly know if the advertisement contains an image or a video. What’s more, if the is_image field is true, you’ll also get additional data about the featured picture in a separate images array. It will contain the alternative text of the image, its URL, and a URL leading to the image on the original resource or DataForSEO storage (in case the original source is not available).

Here’s a full code structure of the updated paid element.

{
  "type": "paid",
  "rank_group": 1,
  "rank_absolute": 1,
  "position": "left",
  "xpath": "/html[1]/body[1]/div[7]/div[1]/div[11]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]",
  "title": "Cheap Flights to Boston - Roundtrip starting from $97",
  "domain": "www.expedia.com",
  "breadcrumb": "https://www.expedia.com/",
  "is_image": true,
  "is_video": false,
  "images": [
    {
      "type": "images_element",
      "alt": "Image from verizon.com",
      "url": "https://www.google.com/aclk?sa=l&ai=DChcSEwj3i4HN_Jb9AhWKGEwKHT2CAt8YABBGGgJvYQ",
      "image_url": "https://api.dataforseo.com/cdn/i/02150911-0696-0066-0000-dfca027b1602:0"
    }
  ],
  "url": "https://www.expedia.com/Cheap-Flights-To-Boston.d178239.Travel-Guide-Flights",
  "highlighted": [
    "flight",
    "cheaper"
  ],
  "extra": {
    "ad_aclk": "DChcSEwjvwqLQ0MT8AhVH7FEKHWo_D70YABAAGgJ3cw"
  },
  "description": "How can Expedia help you save? Freq sales, last-minute travel deals and bundle discounts. Did you know booking flight & hotel together is usually cheaper than booking separately?",
  "description_rows": null,
  "links": [
    {
      "type": "ad_link_element",
      "title": "Round Trip Flights",
      "description": "Book Now & Fly Cheaper at Expedia. Find Tickets for All Top Airlines",
      "url": "https://www.expedia.com/Flights?langid=1033&Sitelink=Round_Trip_Flights&semcid=US.MULTILOBF.GOOGLE.GT-%7Bdevice%7D-EN.FLIGHT&semdtl=a1%7Bcampaignid%7D.b1%7Badgroupid%7D.d1%7Bcreative%7D.e1%7Bdevice%7D.f1%7Badposition%7D.g1%7Btargetid%7D.h1%7Bmatchtype%7D.i1%7Bfeeditemid%7D.j1%7Bloc_physical_ms%7D.k1%7Bloc_interest_ms%7D.l1%7Bnetwork%7D.m1.n1%7Bplacement%7D",
      "domain": null,
      "ad_aclk": "DChcSEwjvwqLQ0MT8AhVH7FEKHWo_D70YABACGgJ3cw"
    },
    {
      "type": "ad_link_element",
      "title": "One Way Flights",
      "description": "Save Big on Last Minute Flights! Find & Book Cheap Flights Now",
      "url": "https://www.expedia.com/Flights?langid=1033&Sitelink=One_Way_Flights&semcid=US.MULTILOBF.GOOGLE.GT-%7Bdevice%7D-EN.FLIGHT&semdtl=a1%7Bcampaignid%7D.b1%7Badgroupid%7D.d1%7Bcreative%7D.e1%7Bdevice%7D.f1%7Badposition%7D.g1%7Btargetid%7D.h1%7Bmatchtype%7D.i1%7Bfeeditemid%7D.j1%7Bloc_physical_ms%7D.k1%7Bloc_interest_ms%7D.l1%7Bnetwork%7D.m1.n1%7Bplacement%7D",
      "domain": null,
      "ad_aclk": "DChcSEwjvwqLQ0MT8AhVH7FEKHWo_D70YABADGgJ3cw"
    }
  ],
  "price": null,
  "rectangle": {
    "x": 181,
    "y": 360,
    "width": 652,
    "height": 176
  }
}

Don’t forget to check our documentation and prepare your system for handling the new fields properly.

SEE DOCS

Embed DataForSeo widget on your website


Embed code:
Preview: