Hi Hashir, Thank you for reaching out to the Google Ads API support team.
In Google Ads API it's not possible to exclude CIDR ranges like /24. An IpBlockInfo used for IP exclusions, which allow: - IPv4 and IPv6 addresses - individual addresses (192.168.0.1) - masks for individual addresses (192.168.0.1/32) - masks for Class C networks (192.168.0.1/24). By default, a new campaign won't contain IP blocking criteria, which means everything is included. The CampaignCriterionService allows you to target or exclude various types of criteria. You can exclude or block ipaddress by utilizing the ipBlock field within the ipblockinfo structure in the CampaignCriterion.mutate method through the Rest interface. Additionally, you may check this sample code on how to add campaign targeting criteria. The limit number of excluded IP blocks per campaign is 500. It is not possible to increase the limits in Google Ads API. I hope this helps! Let us know if you have any further questions. Thanks, Google Ads API Team Feedback How was our support today? [2025-07-09 15:59:18Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rhZMk:ref" (ADR-00318089) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/7lrF1000000000000000000000000000000000000000000000SZ532U00w6HGXg15Qz22HsD338qjsg%40sfdc.net.