add_website_exclusions
Block websites or mobile app IDs on a campaign to prevent ads from serving on unwanted sites. New exclusions merge with existing ones without overwriting.
Instructions
Block websites / mobile-app ids on a campaign so ads won't serve there.
Additive: new sites are merged with the campaign's existing exclusions (read-modify-write), so this never clobbers what's already blocked. Pass bare domains or paths (e.g. "example.com", "example.com/section") or mobile-app ids; a leading http(s):// is stripped for you. Microsoft sites (e.g. MSN.com) can't be excluded and there's a ~2500-site cap per campaign -- such rejections come back in partial_errors. View with get_website_exclusions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Websites / app ids to block (referrer domains). | |
| campaign_id | Yes | The campaign id to block sites on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| ids | No | ||
| message | Yes | ||
| partial_errors | No |