Related Articles:

Currently Microsoft ads does not offer automatic IP blocking via API. Instead, IP's will need to be blocked manually via the Microsoft Ads interface.

To block specific IP addresses from seeing your ads:

  1. Go to All campaigns --> Campaigns located along the top of the page.

  2. Click the Campaigns tab located in the middle of the page. Select the checkbox next the campaigns where you want to add the exclusion.

  3. Click on Edit, and then click on Other changes.

  4. In the Campaign settings list, select IP address exclusions. There, enter the IP addresses that you want to be blocked from seeing your ads.

  • Enter one IP address per line.

  • You can also add a range of addresses using a wildcard character (*).

After you are done making the desired changes, click Apply.


  • All Microsoft Advertising IP exclusions must be added at the campaign level, not the ad group level.

  • You can exclude a maximum of 100 IP addresses (or IP address ranges) per campaign.

  • You can only exclude IPv4 addresses.

More details in Microsoft's help center

Screenshot of entry fields for IP exclusions in Advanced settings.

Did this answer your question?