Mediago API
en
  • en
  • zh
  1. Ad Management
Mediago API
en
  • en
  • zh
  • Authentication
    • Get Access Token
      POST
  • Account Management
    • Get Authorized Account List
      GET
  • Campaign Management
    • Get Authorized Campaign List
      GET
    • Get Campaigns Detail
      GET
    • Create Campaign
      POST
    • Update Campaign
      POST
    • Batch Update Campaigns
      POST
    • Batch Active/Pause Campaigns
      POST
    • Batch Archive Campaigns
      POST
  • Ad Management
    • Get Authorized Ad List
      GET
    • Batch Active/Pause Ads
      POST
  • Sites Block Management
    • Get Account Block List
      GET
    • Block/Unblock Sites at Account
      POST
    • Get Campaign Block List
      GET
    • Block/Unblock Sites at Campaign
      POST
  • Report APIs
    • Get Daily Summary Data of All Campaign
      GET
    • Get Daily Report in Campaign Dimension
      GET
    • Get Daily Report in Ad Dimension
      GET
    • Get Hourly Realtime Data in Campaign or Ad Dimension
      GET
    • Get Account Daily Report in Site Dimension
      GET
    • Get Daily Report in Site Dimension
      GET
  1. Ad Management

Batch Active/Pause Ads

POST
https://api.mediago.io/manage/v1/campaign/ad/status
Last modified:2025-10-13 07:21:33
Active/Pause a list of ad own to you. Returns http code 200 if success.
QPS limit: 60, IP limit: 15.
Request Parameters:
field nametypedescriptionrequired
ad_idsstring arrayarray of ad_idYes
ad_statusintthe active/pause status of the ad, while 0 represents pause, 1 represents activeYes

Request

Header Params

Body Params application/json

Example
{
  "ad_ids": ["ad_12345", "ad_12346"],
  "ad_status": 1
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediago.io/manage/v1/campaign/ad/status' \
--header 'Authorization: Bearer your_access_token_here' \
--header 'Content-Type: application/json' \
--data-raw '{
  "ad_ids": ["ad_12345", "ad_12346"],
  "ad_status": 1
}'

Responses

🟢200200 OK
application/json
Body

Example
{
  "msg": "success"
}
🟠400400 Bad Request
Modified at 2025-10-13 07:21:33
Previous
Get Authorized Ad List
Next
Sites Block Management
Built with