Marketplace Content Blocking

Set up the content blocking for MoPub Marketplace ads using this resource. Before using this resource review our documentation on MoPub Marketplace Content Blocking.

NOTE: All POST requests and the “get” endpoint require a type and optional app key passed in. Examples:

Account level:

https://api.mopub.com/v2/content-blocking/get?type=account

https://api.mopub.com/v2/content-blocking/delete_advertiser_blocks?type=account

App level:

https://api.mopub.com/v2/content-blocking/get?type=app&appKey=<key>

https://api.mopub.com/v2/content-blocking/delete_advertiser_blocks?type=app&appKey=<key>

JSON Representation

{
    "data": {
        "advertisers": [
            {
                "domain": "string"
            }
        ],
        "apps": {
            "android": [
      	                      {
                    "package": "string"
                }
            ],
            "ios": [
                {
                    "package": "string"
                }
            ]
        },
        "categories": [
            "string",
            "string"
        ]
    }
}

Endpoint Definitions

Task URL Request type Details
query /content-blocking/query GET Returns all content blocking configuration for an Account. Includes all Apps
get /content-blocking/get GET Returns either account content blocks or single app content blocks
Create advertiser blocks /content-blocking/create_advertiser_blocks POST Limitation: Create at most 100 domain blocks
Create app blocks /content-blocking/create_app_blocks POST Limitations: Create at most 100 ios app blocks and 100 android app blocks per request
Create app blocks /content-blocking/create_app_blocks POST Limitations: Create at most 100 ios app blocks and 100 android app blocks per request
Delete advertiser blocks /content-blocking/delete_advertiser_blocks POST Takes up to 100 domains - if they they are blocked - they will be unblocked.
Delete app blocks /content-blocking/delete_app_blocks POST Takes up to 100 Android and 100 iOS apps - if they they are blocked - they will be unblocked.
Update category blocks /content-blocking/update_category_blocks POST Replaces list of category blocks with what is passed into this api

Last updated September 20, 2021

© 2022