i cant create commissions campaign.

55 views
Skip to first unread message

chun liu

unread,
Mar 25, 2024, 3:08:43 AM3/25/24
to Google Ads API and AdWords API Forum
i have try to create a commission campaign through google ads.
i have no idea how to do it.
微信截图_20240325150404.png

try it through rest api.
```
{
    "campaignBudget": "customers/4308185274/campaignBudgets/12574043039",
    "name": "20240325 create test",
    "commission": {
      "commissionRateMicros": "106000"
    },
    "paymentMode":"CONVERSION_VALUE"
  }
```
response an error to me.
```
{
    "success": false,
    "code": 400,
    "message": "Request contains an invalid argument.",
    "data": {
        "error": {
            "code": 400,
            "message": "Request contains an invalid argument.",
            "status": "INVALID_ARGUMENT",
            "details": [
                {
                    "errors": [
                        {
                            "errorCode": {
                                "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
                            },
                            "message": "The operation is not allowed for the given context.",
                            "trigger": {
                                "int64Value": "6"
                            },
                            "location": {
                                "fieldPathElements": [
                                    {
                                        "fieldName": "operations",
                                        "index": 0
                                    },
                                    {
                                        "fieldName": "create"
                                    },
                                    {
                                        "fieldName": "payment_mode"
                                    }
                                ]
                            }
                        }
                    ],
                    "requestId": "d5kp6RtdMcNaV0RWsGkIJQ"
                }
            ]
        }
    },
    "debug": []
}
```
i have try all payment mode and change campaign budget.

Google Ads API Forum Advisor

unread,
Mar 25, 2024, 9:02:05 AM3/25/24
to liux...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your query, I understand that you are getting the 'OPERATION_NOT_PERMITTED_FOR_CONTEXT' error when trying to create a commission campaign via the API. This error indicates that you tried to perform an action that's not allowed in the current situation. I would recommend you follow the document Create a Campaign Budget to get more information.

Upon checking the logs that you have provided, I would like to inform you that the logs do not contain the request method in them. In order to debug your issue further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end to better assist you on this request. 

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.

You can share the requested details via Reply privately to the author option or a direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0CE1:ref" (ADR-00228504)

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages