RE: facing an issue in campaign creation specifically bidding_strategy

29 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
May 15, 2025, 1:15:08 AM5/15/25
to mark...@m5azn.com, adwor...@googlegroups.com

Hi,

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

I noticed that you are encountering the error OPERATION_NOT_PERMITTED_FOR_CONTEXT, which usually indicates that the action you're trying to perform isn't allowed for the type of account or the specific context in which you're operating. 

After reviewing the logs of your API request. I have received a successful response for the same request from my end.

Therefore, I recommend that you retry your request. However, If your issue still remains the same, please get back to us with the complete updated API logs (request and response logs with request-id and request header) generated at your end.

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 send the details via Reply privately to the author option, or direct private reply to this email.
 


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-15 05:14:22Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qX4kW:ref" (ADR-00305882)



Marketing M5AZN

unread,
May 15, 2025, 12:39:54 PM5/15/25
to ads...@forumsupport.google, adwor...@googlegroups.com

Dear Google Ads API Support Team,

Thank you for your response.

Please find below the full details, including the cURL request, headers, payload, and the response (including the request ID). You're welcome to use my credentials (e.g., customer ID, developer token) to reproduce the issue. If you require the access token as well, I’d be happy to share it securely.

--header 'developer-token: Ng_AFlh-l82KSwnUUVgAWg' \
--header 'login-customer-id: 6640200068' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
  "operations": [
    {
      "create": {
        "name": "test campaign create",
        "advertisingChannelType": "SEARCH",
        "status": "PAUSED",
        "biddingStrategy": "customers/6640200068/biddingStrategies/11568776567",
        "campaignBudget": "customers/6640200068/campaignBudgets/14573279689"
      }
    }
  ]
} Reponse {
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.ads.googleads.v19.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"
                        },
                        "message": "The operation is not allowed for the given context.",
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    }
                ],
                "requestId": "rO0h81P3Y0B4BEsVbWwqvw"
            }
        ]
    }
}

Looking forward to your guidance on resolving the issue.

Best regards,
Abdullah
Laravel Developer, M5azn
Saudi Arabia

--
Muhammad Talha
Digital Marketing Manager

mobile:+966 50 916 9303
e-mail:mark...@m5azn.com
address:M5azn - المخازن الإلكترونيةAnas Ibn Malik Rd, Alyasmin
Riyadh
www.m5azn.com
LinkedIn iconTwitter iconYoutube iconInstagram icon
Banner
Reply all
Reply to author
Forward
0 new messages