TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP - Update campaign

33 views
Skip to first unread message

hüseyin Armağan

unread,
Dec 3, 2019, 9:43:54 AM12/3/19
to AdWords API and Google Ads API Forum
Hi All,

I can not set targetting settings criterionTypeGroup except USER_INTEREST_AND_LIST and service throw exception on update or creating campaign service for KEYWORD, VERTICAL, GENDER, AGE_RANGE, PLACEMENT, PARENT, INCOME_RANGE and NONE. Are there a restriction for these creationTypeGroup on create/update Campaign and AdGroup stage ?

{
    "id": 8277607421,
    "settings": [
        {
            "xsi_type": "TargetingSetting",
            "details": [
                {
                    "criterionTypeGroup": "VERTICAL",
                    "targetAll": false
                },
                {
                    "criterionTypeGroup": "USER_INTEREST_AND_LIST",
                    "targetAll": true
                }
            ]
        }
    ]
}



{'faultMessage': "[SettingError.TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP @ operations[0].operand.settings[0]; trigger:'VERTICAL']", 'requestId': '000598cd42c47ac90a37b7c6900dcc20', 'serviceName': 'CampaignService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '97'}

Google Ads API Forum Advisor Prod

unread,
Dec 4, 2019, 11:31:18 AM12/4/19
to huseyin...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. You must follow the example here to set the TargetingSettings. When you update the targeting settings, you must specify an exhaustive list of all targeting settings you want; there is no way to just specify a single new targeting setting. To do this, you must first fetch the existing list of targeting settings before you attempt your update, and make sure you include all the existing ones along with the new one you want to add.

Regards,
Mitchell
Google Ads API Team



ref:_00D1U1174p._5001UODiem:ref

hüseyin Armağan

unread,
Dec 5, 2019, 5:44:16 AM12/5/19
to AdWords API and Google Ads API Forum
Thank you , Mitchell

4 Aralık 2019 Çarşamba 19:31:18 UTC+3 tarihinde adsapiforumadvisor yazdı:
Reply all
Reply to author
Forward
0 new messages