> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to easily scrape Google Ads Transparency Political Advertisement
- URL: https://serpapi.com/blog/how-to-easily-scrape-google-ads-transparency-political-advertisement/
- Published: 2025-03-04T15:17:56.000Z
- Updated: 2025-07-30T20:49:15.000Z
- Description: Political Advertising have become necessary nowadays, and not utilizing it can mean losing elections, but how to efficiently discover and track what's being published and what's relevant to create counter strategies? With SerpApi, leveraging all this information becomes extremely easy.
- Author: Michael Moura
- Tags: Google Ads, Google Ads Transparency Center, ads campaign, search ads

### Introduction

Political Advertisements are very important, and they are always present in several media outlets, especially during election season.  
Google Ads allows for the creation of Political Advertisements on many platforms, such as ***Google Search***, ***Google Maps***, ***Google Play***, ***Google Shopping***, ***Youtube*** and websites that participate in the ***Google AdSense program***.  
All advertisements made through Google Ads can be analyzed using the Google Ads Transparency Center. Additionally, when it comes to Political Advertising specifically, Google offers even more information compared to regular ads, such as ***to how many people the advertisement was displayed***, and ***how much money was invested in the campaign***. In addition to that, there's more information available for both Political Ads and regular Ads, like the ***Ad format*** ***Platform*** where the ad is displayed, ***who is the Advertiser*** promoting the ad, for ***how many days the Ad was displayed***, the ***dates when the Ad was displayed***, and more!

### How are Political Ads different from regular Ads?

Google has a commitment for Ads transparency, and they support responsible Political advertising. For that reason, Google has extra requirements for advertisers who are posting Political Ads.  
Because each country has different laws regarding what is allowed, advertisers creating Political ads must specify at which country their ads will be displayed. Additionally, they are required to be verified, and have more limited options for targeting. The only criteria that can be used to target election ads are geographic location, age, gender, and some contextual targeting options, such as ad placements, topics, keywords against sites, apps, pages and videos.

### What information is available in Google Ads Transparency Center?  

![Google Ads Transparency Center offers a lot of information about Political Advertising.](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2025/03/Google-Ads-Transparency-Center.png)

Political Ads sample on Google Ads Transparency Center website.

There's a lot of relevant information about Political Ads that can be found on ***Google Ads Transparency Center*** listings, such as ***campaign impressions***, ***budget*** and ***campaign length***. Furthermore, when using SerpApi, there's even more information that can be extracted from these listings, like ***Ad format***, ***Advertiser Id*** and ***Ad Id***.  
SerpApi also empowers users to filter results by ***geographic location*** ([list of all available locations](https://serpapi.com/google-ads-transparency-center-regions)), ***format*** (`text`, `image` & `video`), **platform** (*Google Play*, *Google Maps*, *Google Search*, *Google Shopping* & *Youtube*) and Ad `text`.

Now that we know the value we can get from scraping Google Ads Transparency Center, let's see how we can use SerpApi to explore Political advertising on Google:

### Setting Up a SerpApi Account

First, we need to create a SerpApi account. [SerpApi has a Free tier](https://serpapi.com/pricing) that offers up to 250 searches per month.  
Let's head to the [sign-up page](https://serpapi.com/users/sign%5Fup?plan=free) to create an account. Provide a valid email and a valid phone number in order to access your account's [dashboard](https://serpapi.com/dashboard).

[![Signing up for a SerpApi account is very straightforward.](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2025/02/serpapi_signup.jpg)](https://serpapi.com/users/sign%5Fup?plan=free)

SerpApi Signup/Signin page where you can create an account by providing an unique email address and an unique phone number.

### Exploring Political advertising on Google

Now that you have an account, you can [sign in](https://serpapi.com/users/sign%5Fin) and use SerpApi's [Playground technology](https://serpapi.com/playground?engine=google%5Fads%5Ftransparency%5Fcenter&advertiser%5Fid=AR07223290584121737217&political%5Fads=true&region=2840&no%5Fcache=true&political%5Fads=true&newPara=political%5Fads) to explore ***Google Ads transparency Center political ads***.

In order to get results related to Political Ads specifically, we must first set the parameter `advertiser_id` to the Id of a political advertiser, such as "***Bloomberg L.P.***", whose Id is "***AR07223290584121737217***", then it's required to set the parameter `political_ads` to `true` and set the `region` parameter to the [code related to the region of interest](https://serpapi.com/google-ads-transparency-center-regions), for instance, we can set it to `2840` for results displayed in the ***United States***.

We may also set filter parameters if we need more control over the results. We can use the parameter `platform` to get results of Ads that are being displayed in selected platforms, for example, we can set it to `PLAY` to get results only displayed on ***Google Play***, or to `MAPS` for results on ***Google Maps***, `SEARCH` for ***Google Search*** results, `SHOPPING` for ***Google Shopping*** results and `YOUTUBE` for ***Youtube*** results.

We may also use the filter parameter `creative_format` to `text` to only get ***text advertising*** results, to `image` for results of ***advertisement that have images***, or to `video` to return ***advertisement that have videos attached to them***.

Other filter parameters that can be very useful are the parameters `start_date` and `end_date` to filter results within a specific ***date range***.

Google Political Advertisement results can have `advertiser_id`, `advertiser`, `ad_creative_id`, `format`, `link`, `image`, `width`, `height`, `total_days_shown`, `first_shown`, `last_shown`, `minimum_views_count`, `maximum_views_count`, `minimum_budget_spent`, `maximum_budget_spent` and `details_link`.

[![SerpApi's Playground is a great place to explore all Search Engines scraped by SerpApi.](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2025/03/SerpApi-Playground-Google-Ads-Transparency-Center.jpg)](https://serpapi.com/playground?engine=google%5Fads%5Ftransparency%5Fcenter&advertiser%5Fid=AR07223290584121737217&political%5Fads=true&region=2840&no%5Fcache=true&political%5Fads=true&newPara=political%5Fads)

Using SerpApi's Playground technology makes it very easy to explore several Search Engines results, including from Google Ads Transparency Center

### Integrating SerpApi with your application

Exploring SerpApi's vast diversity of Search APIs using Playground is a lot of fun, but to get the most out of SerpApi's services it's best to use the results from Search Engines directly in your application programmatically.

In order to send requests to SerpApi, we will need your unique secret `API key` that can be copied right from your [dashboard](https://serpapi.com/dashboard):

[![Find your secret and unique API key in SerpApi dashboard page.](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/12/serpapi_api_key-2.jpg)](https://serpapi.com/dashboard)

Use your unique secret API key in your application to send requests to SerpApi programmatically.

Your `API key` is unique to you and you should never share it anywhere to avoid other people using your account, but in case you accidentally expose your `API key`, you can easily generate a new one from the [Manage API key page](https://serpapi.com/manage-api-key) (if you generate a new `API key`, don't forget to update your application code with the newly generated `API key`).

Check out the documentation for SerpApi libraries based on the programming language you use:

- [Ruby](https://github.com/serpapi/google-search-results-ruby)
- [Python](https://github.com/serpapi/google-search-results-python)
- [JavaScript](https://github.com/serpapi/serpapi-javascript)
- [PHP](https://github.com/serpapi/google-search-results-php)
- [Go](https://github.com/serpapi/google-search-results-golang)
- [Java](https://github.com/serpapi/google-search-results-java)
- [Dotnet](https://github.com/serpapi/google-search-results-dotnet)

To demonstrate how simple it is to use SerpApi in your code, here's all you'd need to do to retrieve ***Google Political Ads*** results from your application using the Ruby language, as you can also see in SerpApi's [Google Ads Transparency Center API's documentation page](https://serpapi.com/google-ads-transparency-center-api).

```Ruby
require 'google_search_results' 

params = {
  engine: "google_ads_transparency_center",
  advertiser_id: "AR17828074650563772417",
  region: "2840",
  political_ads: true,
  api_key: "YOUR_SECRET_API_KEY"
}

search = GoogleSearch.new(params)
ad_creatives = search.get_hash[:ad_creatives]
```

That's all there is to it. Integrating SerpApi is extremely simple and straightforward. You can explore how to use all other Search Engine APIs offered by SerpApi at our [documentation page](https://serpapi.com/search-api), and play around with each of them using SerpApi's [Playground feature](https://serpapi.com/playground).

Have fun! 😃