Ads Results
Scrape real time ads from Google Search.
As stated in the Response section, some Google searches may include ads, others may not. Depending on the scenario, if our Google Scraper API identifies ads in the search results, these will be included in the ads
array inside the response body.
Each ad inside the array will be displayed as an object, containing the following keys:
position
Integer
The position of the ad
block_position
String
Position of the ad relative to the DOM. Can be top
or bottom
.
title
String
The title of the ad
displayed_link
String
The displayed link in the results
description
String
Description of the ad
tracking_link
String
The tracking link from google ads
link
String
Link to the ad
Ad Results Request Examples
Request Example That Returns Ads Elements
GET
https://serpapi.webscrapingapi.com/v1?engine=google&api_key=<YOUR_API_KEY>&q=laptops
This is a basic GET request that returns the ads results found on the Google page.
Query Parameters
q*
String
laptops
api_key*
String
<YOUR_API_KEY>
{
...
"ads": [
{
"position": 1,
"block_position": "top",
"title": "Powerful & Affordable Laptops - Shop Dell Laptops",
"displayed_link": "https://www.dell.com/",
"description": "Love Your Tech Without Worrying About Price w/ Dell Price Match Guarantee + Free Shipping! Shop the Latest Dell Laptops for Home & Work w/ Powerful 10th Gen Intel Core...",
"extensions": [
"Featured Laptop Deals · XPS 13 · Alienware Laptops · Dell Business Laptops"
],
"sitelinks": [
{
"link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABA3GgJwdg&ae=2&sig=AOD64_2uh5bRcEOVr6QS6r9rYkC-H4N4Vw&q=&ved=2ahUKEwi75d_D_pnyAhWHZs0KHVbnDOcQpigoAHoECAMQEQ&adurl=",
"title": "Featured Laptop Deals"
},
{
"link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABA4GgJwdg&ae=2&sig=AOD64_0N1J_IhdCkxnOZKzO1cgLNFw19ng&q=&ved=2ahUKEwi75d_D_pnyAhWHZs0KHVbnDOcQpigoAXoECAMQEg&adurl=",
"title": "XPS 13"
},
{
"link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABA5GgJwdg&ae=2&sig=AOD64_2PHZj9VDgTfM4CcxBt3n3wMhlxHw&q=&ved=2ahUKEwi75d_D_pnyAhWHZs0KHVbnDOcQpigoAnoECAMQEw&adurl=",
"title": "Alienware Laptops"
},
{
"link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABA6GgJwdg&ae=2&sig=AOD64_1U1UXlqUJlk8Slirvgce2MoEaW6w&q=&ved=2ahUKEwi75d_D_pnyAhWHZs0KHVbnDOcQpigoA3oECAMQFA&adurl=",
"title": "Dell Business Laptops"
}
],
"tracking_link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABAzGgJwdg&ae=2&sig=AOD64_3FScjZb3xYRvYuHjosl8cZv8gFjw&q&adurl",
"link": "https://www.dell.com/en-us/cp/paid-search-splitter"
},
{
"position": 2,
"block_position": "top",
"title": "Samsung Galaxy Book Pro/360 - With Windows 10 OS",
"displayed_link": "https://www.samsung.com/",
"description": "Buy Now & Do More On A Familiar Operating System With The Programs And Tools You Love.",
"tracking_link": "https://www.google.com/aclk?sa=l&ai=DChcSEwjp8OnD_pnyAhXeDq0GHfUPBjYYABA0GgJwdg&ae=2&sig=AOD64_1b6j8dsyDd3-fRhIaVlQmzBFVH4g&q&adurl",
"link": "https://www.samsung.com/us/computing/galaxy-book-pro-360/"
}
],
...
}

Last updated