Create AdGroupCriterion wth placement

19 views
Skip to first unread message

adstest adstest

unread,
Dec 18, 2019, 11:42:36 AM12/18/19
to AdWords API and Google Ads API Forum
Hi all,

i want to create an AdGroupCriterion with "placement":

{
    "operations": {
        "create": {
"placement": {
},
        "adGroup":"customers/2017233623/adGroups/87687245715",
            "status": "ENABLED",
            "type": "PLACEMENT"
       }
    }
}

but when i call the api i get as answer:

{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "trigger": {
                            "stringValue": "SEARCH"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": "0"
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "placement"
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    }
}

Note that Campaign is SEARCH.

How i can set up a "placement" for SEARCH Campain ?


Google Ads API Forum Advisor Prod

unread,
Dec 18, 2019, 4:04:18 PM12/18/19
to pgad...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out. As explained here, Placements can only be added as a negative criteria. Please ensure that you are not trying to add it as a positive criteria. If you are also getting the error when adding it as a negative criteria, please share the complete request and response logs via reply privately to author so that I can further investigate the issue.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UOEqDF:ref
Reply all
Reply to author
Forward
0 new messages