Negative Device by CampaignCriterion

66 views
Skip to first unread message

Ihor S.

unread,
Mar 12, 2024, 11:52:39 AM3/12/24
to Google Ads API and AdWords API Forum
I'm trying to create a campany and exclude Tablet Device from the CampaignCriterion.
So I create negative CampaignCriterion Object(PHP)

$campaignCriterion = new CampaignCriterion();
$campaignCriterion->setCampaign(...);
$campaignCriterion->setDevice(...);
$campaignCriterion->setNegative(true);

But I catch error "IMMUTABLE_FIELD" (campaign_criterion_operation / create / negative)


requestId: Mlzu7nb1d9LWoWDET08r7Q

Help please)


Google Ads API Forum Advisor

unread,
Mar 12, 2024, 3:44:08 PM3/12/24
to si1992...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand you are encountering an "IMMUTABLE_FIELD" error which means that the field cannot be modified because it's immutable. It's also possible that the field can be modified using 'create' operation but not 'update'. In order to investigate your issue further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzssg:ref" (ADR-00226991)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages