Hi,
Thank you for reaching out to the Google Ads API support team.
Kindly note that when you set the
upgraded_targeting field to 'true' for the demand gen campaign then the location and language targeting are managed at the ad group level rather than the campaign level. If you don't set this field then it will be defaulted to true. Since location and language targeting are applied at the ad group level, you will need to use the
adGroupCriteria method to exclude the locations, rather than the
campaignCriteria method. When you try to use the
campaignCriteria method you will encounter an 'OWNED_AND_OPERATED' error. Also,
upgraded_targeting is immutable, meaning it cannot be modified once set. The only possible way to avoid the error is you would need to create a new campaign with
upgraded_targeting set to 'false', allowing you to use the
campaignCriteria method to target the location at the campaign level or to use the
adGroupCriteria method and exclude the locations.
You can check your Demand Gen campaign to see if the location and language settings are configured at the ad group level or campaign level within the campaign settings page. For reference, I have attached two sample screenshots. In one campaign, the location and language settings are applied at the ad group level, and location exclusions are targeted using the campaignCriteria method, which results in receiving 'OWNED_AND_OPERATED' error. In the other campaign, where location and language settings are applied at the campaign level, no errors are encountered when targeting location exclusions using the campaignCriteria method.
If you still face any issues, then share us the Google Ads account ID and the campaign ID so that we can check and confirm if your campaign criteria is created at the campaign level or the ad group level.
You can send the details via
Reply privately to the author option, or
direct private reply to this email.
