HELP CENTER

What is an advertiser_id in Google Ads, and how can you obtain it?

The advertiser ID is a unique identifier for a Google Ads advertiser account. It consists of the prefix “AR” followed by a 20-digit number.

Example: "advertiser_id": "AR02439908557932462081"

This ID is unique to every Google Ads advertiser account, even for advertisers who share the same name but manage multiple accounts (multi-account advertisers).

Advertiser IDs can be used with the Google Ads Search endpoint of the SERP API to retrieve data on advertising campaigns run by specific advertisers. This endpoint provides details about advertisers running campaigns on Google Ads, leveraging data from the Ads Transparency Center.

In particular, the advertiser_id is displayed in the URL of the advertiser page at Google Ads Transparency Center.

Example: https://adstransparency.google.com/advertiser/AR13752565271262920705?region=anywhere
 

How to obtain an advertiser_id

You can obtain an advertiser ID using the Google Ads Advertisers endpoint of the SERP API. This endpoint also relies on the Ads Transparency Center and retrieves information about advertisers from SERPs based on specific location and keyword parameters.

1 Make a call to the Google Ads Advertisers endpoint.

POST https://api.dataforseo.com/v3/serp/google/ads_advertisers/task_post

2 In the keyword field, specify the target keyword.

3 Using location_name, location_code or location_coordinate field specify the location. You can get a list of supported locations by calling a separate Locations endpoint.

Request example:

[
  {
    "location_code": 2840,
    "keyword": "apple"
  }
]

Response example:

{
  "version": "0.1.20241101",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.2500 sec.",
  "cost": 0,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "11202055-1535-0066-0000-91e8aada902c",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.1930 sec.",
      "cost": 0,
      "result_count": 1,
      "path": [
        "v3",
        "serp",
        "google",
        "ads_advertisers",
        "task_get",
        "advanced",
        "11202055-1535-0066-0000-91e8aada902c"
      ],
      "data": {
        "api": "serp",
        "function": "task_get",
        "se": "google",
        "se_type": "ads_advertisers",
        "location_code": 2840,
        "keyword": "apple",
        "device": "desktop",
        "os": "windows"
      },
      "result": [
        {
          "keyword": "apple",
          "type": "ads_advertisers",
          "se_domain": "adstransparency.google.com",
          "location_code": 2840,
          "language_code": "en",
          "check_url": null,
          "datetime": "2024-11-20 18:55:54 +00:00",
          "spell": null,
          "refinement_chips": null,
          "item_types": [
            "ads_advertiser",
            "ads_multi_account_advertiser",
            "ads_domain"
          ],
          "se_results_count": 0,
          "items_count": 19,
          "items": [
            {
              "type": "ads_advertiser",
              "rank_group": 1,
              "rank_absolute": 1,
              "title": "AppleAire",
              "advertiser_id": "AR17003630320609656833",
              "location": "US",
              "verified": true,
              "approx_ads_count": 66
            },
            {
              "type": "ads_advertiser",
              "rank_group": 2,
              "rank_absolute": 2,
              "title": "FANCY APPLE",
              "advertiser_id": "AR10312208952913297409",
              "location": "US",
              "verified": true,
              "approx_ads_count": 64
            },
            {
              "type": "ads_advertiser",
              "rank_group": 3,
              "rank_absolute": 3,
              "title": "Apple Inc",
              "advertiser_id": "AR04280480096432685057",
              "location": "US",
              "verified": true,
              "approx_ads_count": 58
            },
            {
              "type": "ads_multi_account_advertiser",
              "rank_group": 1,
              "rank_absolute": 4,
              "title": "Apple Inc.",
              "location": "US",
              "approx_ads_count": 49,
              "advertisers": [
                {
                  "type": "advertiser",
                  "advertiser_id": "AR02439908557932462081",
                  "location": "US",
                  "verified": true,
                  "approx_ads_count": 45
                },
                {
                  "type": "advertiser",
                  "advertiser_id": "AR06681431823521677313",
                  "location": "US",
                  "verified": false,
                  "approx_ads_count": 4
                }
              ]
            },
            {
              "type": "ads_advertiser",
              "rank_group": 4,
              "rank_absolute": 5,
              "title": "Apple Auto",
              "advertiser_id": "AR12151332228441309185",
              "location": "US",
              "verified": true,
              "approx_ads_count": 19
            },
            {
              "type": "ads_advertiser",
              "rank_group": 5,
              "rank_absolute": 6,
              "title": "Apple Wood",
              "advertiser_id": "AR06010505619184812033",
              "location": "US",
              "verified": true,
              "approx_ads_count": 3
            },
            {
              "type": "ads_advertiser",
              "rank_group": 6,
              "rank_absolute": 7,
              "title": "Apple",
              "advertiser_id": "AR16006410966849814529",
              "location": "US",
              "verified": false,
              "approx_ads_count": 2
            },
            {
              "type": "ads_advertiser",
              "rank_group": 7,
              "rank_absolute": 8,
              "title": "Apple",
              "advertiser_id": "AR03460445289142288385",
              "location": "AU",
              "verified": false,
              "approx_ads_count": 1
            },
            {
              "type": "ads_advertiser",
              "rank_group": 8,
              "rank_absolute": 9,
              "title": "Apple Bits",
              "advertiser_id": "AR06403154157905117185",
              "location": "AU",
              "verified": false,
              "approx_ads_count": 1
            },
            {
              "type": "ads_domain",
              "rank_group": 1,
              "rank_absolute": 10,
              "domain": "apple.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 2,
              "rank_absolute": 11,
              "domain": "snapple.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 3,
              "rank_absolute": 12,
              "domain": "kappler.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 4,
              "rank_absolute": 13,
              "domain": "applern.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 5,
              "rank_absolute": 14,
              "domain": "applefcu.org"
            },
            {
              "type": "ads_domain",
              "rank_group": 6,
              "rank_absolute": 15,
              "domain": "applecart.co"
            },
            {
              "type": "ads_domain",
              "rank_group": 7,
              "rank_absolute": 16,
              "domain": "apple.com.cn"
            },
            {
              "type": "ads_domain",
              "rank_group": 8,
              "rank_absolute": 17,
              "domain": "applerock.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 9,
              "rank_absolute": 18,
              "domain": "applejack.com"
            },
            {
              "type": "ads_domain",
              "rank_group": 10,
              "rank_absolute": 19,
              "domain": "applebank.com"
            }
          ]
        }
      ]
    }
  ]
}

In the items array of the result, you can find advertiser_id within the ads_advertiser and ads_multi_account_advertiser elements.

The advertisers array within the ads_multi_account_advertiser element contains the advertiser IDs of advertising accounts with similar names in Google Ads.

These advertiser IDs can be used with the Google Ads Search endpoint to get data about the ad campaigns these advertisers operate. For more information about the Google Ads Advertisers and Google Ads Search endpoints, see this Help Center article.

Embed DataForSeo widget on your website


Embed code:
Preview: