customers.campaignCriteria ==> MULTIPLE(MULTIPLE_MOBILE_APP) ERROR

22 views
Skip to first unread message

Ali Talip Sever

unread,
Dec 13, 2021, 5:10:57 PM12/13/21
to AdWords API and Google Ads API Forum
Hello, 

I'm trying add campaignCriteria for app based in REST api. Bu I'm getting this error => MULTIPLE(MULTIPLE_MOBILE_APP)

What is the problem? any suggestion? Thanks


{
"operations": [
{
"create":{
"type": "MOBILE_APPLICATION",
"status": "ENABLED",
"campaign": "customers/******/campaigns/*******",
"negative": "true",
"mobileApplication": {
"appId": "1-1546365343",
"name": "QR Code Reader · Scan QR Code"
}
}
}
],
"validateOnly": "true",
"responseContentType": "MUTABLE_RESOURCE"
}

and this is server response: {
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
                        },
                        "message": "The operation is not allowed for the given context.",
                        "trigger": {
                            "stringValue": "MULTIPLE(MULTIPLE_MOBILE_APP)"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "mobile_application"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "**************"
            }
        ]
    }
}

Google Ads API Forum Advisor

unread,
Dec 14, 2021, 8:02:06 AM12/14/21
to alit...@madduck.co, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us.

Could you provide us with the complete request and response logs with the request-id, so our team can better check? For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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