Google

AdSense Platform API

AdSense Platform API endpoints from Google

E-commerce#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

AdSense Platform API endpoints from Google

Endpoints 10

platforms.accounts

  • POSTCloses a sub-account./v1/:name:closeCloses a sub-account.
  • GETLists a partial view of sub-accounts for a specific parent account./v1/:parent/accounts?pageSize=0&pageToken=stringLists a partial view of sub-accounts for a specific parent account.
  • POSTCreates a sub-account./v1/:parent/accountsCreates a sub-account.
  • GETLooks up information about a sub-account for a specified creation_request_id/v1/:parent/accounts:lookup?creationRequestId=stringLooks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.

platforms.accounts.sites

  • GETGets a site from a specified sub-account./v1/:nameGets a site from a specified sub-account.
  • DELETEDeletes a site from a specified account./v1/:nameDeletes a site from a specified account.
  • GETLists sites for a specific account./v1/:parent/sites?pageSize=0&pageToken=stringLists sites for a specific account.
  • POSTCreates a site for a specified account./v1/:parent/sitesCreates a site for a specified account.
  • POSTRequests the review of a site/v1/:name:requestReviewRequests the review of a site. The site should be in REQUIRES_REVIEW or NEEDS_ATTENTION state. Note: Make sure you place an ad tag on your site before…

platforms.accounts.events

  • POSTCreates an account event./v1/:parent/eventsCreates an account event.

API details

Base URL
https://adsenseplatform.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter
Operations
10 operations on 7 pathsPOST 5GET 4DELETE 1
Main resources
platforms.accounts.sites 5platforms.accounts 4platforms.accounts.events 1
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the AdSense Platform API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the AdSense Platform API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Closes a sub-account.” (POST /v1/:name:close), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the AdSense Platform API?

AdSense Platform API endpoints from Google It is listed under E-commerce and has 10 endpoints.

Who publishes the AdSense Platform API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the AdSense Platform API?

Requests go to https://adsenseplatform.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the AdSense Platform API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.

How many endpoints does the AdSense Platform API have?

10 operations on 7 paths (5 POST, 4 GET, 1 DELETE). The largest groups are platforms.accounts.sites, platforms.accounts, platforms.accounts.events.

Is forking the AdSense Platform API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.