Unable to create local_services budget. errors = INVALID_ARGUMENT

27 views
Skip to first unread message

Darshan Dhabale

unread,
Jul 29, 2024, 5:17:29 AM7/29/24
to Google Ads API and AdWords API Forum
Here is the request curl and response
Thanks for your help
curl --location 'https://googleads.googleapis.com/v17/customers/4926841893/campaignBudgets:mutate' \
--header 'developer-token: hN6dsqjNmj3tWdITcPd_Qg' \
--header 'login-customer-id: 3263459376' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ya29.a0AXooCgtcFCq88QpzE-082AKQng5h1oXpJ-WvI-qLlkdzQNLN9AgNUUCwzU4wn_cUjWLEa3wGHFGFeDU40BPD_p2wqGSXBCD6Mi1E9Ew82IxMot3Z1ct-IGrEOlupFLOFPA2njdXgU4x2cmoDo8X1KtDm1ofv1Hg6wBZVaCgYKAR0SARMSFQHGX2MiSoHhPa5pxiQPHwZsgOUylw0171' \
--data '{
    "operations": [
        {
            "create": {
                "status": "ENABLED",
                "deliveryMethod": "STANDARD",
                "period": "DAILY",
                "type": "LOCAL_SERVICES",
                "name": "Local budget 1",
                "amountMicros": 1000000
            }
        }
    ]
}'

Here is the response -
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "trigger": {
                            "stringValue": "HOME_SERVICES_ADS"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "type"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "1ZoG1nIMKkAb-cyE_JzJzA"
            }
        ]
    }
}

Google Ads API Forum Advisor

unread,
Jul 29, 2024, 12:00:43 PM7/29/24
to dhabale...@gmail.com, adwor...@googlegroups.com

Hi,

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

Based on the provided information, I understand that you are receiving an INVALID_ARGUMENT error indicating that the type field value provided in the request (LOCAL_SERVICES) is not valid in the current version of the Google Ads API. Please note that the Google Ads API blocks the creation of new Local Services campaigns, and because of this unsupported operation, you are getting this type of error. I would suggest referring to this document for more information about unsupported operations.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vEHGy:ref" (ADR-00259938)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 

 

Reply all
Reply to author
Forward
0 new messages