Hi,
Below is the request and request header:
------ Method:
/google.ads.googleads.v14.services.CampaignService/MutateCampaigns Host:
googleads.googleapis.com Headers: { "developer-token": "REDACTED",
"x-goog-api-client": "gl-python/3.10.12 grpc/1.48.1 gax/2.8.2 gccl/21.2.0
pb/4.25.1", "x-goog-request-params": "customer_id=5901767327" } Request:
customer_id: "5901767327" operations { update_mask { paths: "resource_name"
paths: "target_roas.target_roas" } update { resource_name:
"customers/5901767327/campaigns/16501417569" target_roas { target_roas: 1 }
} } Response ------- Headers: {
"google.ads.googleads.v14.errors.googleadsfailure-bin":
"\ne\n\u0003\u0003\u0002\u00123The operation is not allowed for the given
context.\")\u0012\u000e\n\noperations\u0018\u0000\u0012\b\n\u0006update\u0012\r\n\u000btarget_roas\u0012\u0016wngBTHJ59-u7Hyek-RpttQ",
"grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid
argument.\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure\u0012
\ne\n\u0003\u0003\u0002\u00123The
operation is not allowed for the given
context.\")\u0012\u000e\n\noperations\u0018\u0000\u0012\b\n\u0006update\u0012\r\n\u000btarget_roas\u0012\u0016wngBTHJ59-u7Hyek-RpttQ",
"request-id": "wngBTHJ59-u7Hyek-RpttQ" } Fault: errors { error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT } message: "The
operation is not allowed for the given context." location {
field_path_elements { field_name: "operations" index: 0 }
field_path_elements { field_name: "update" } field_path_elements {
field_name: "target_roas" } } } request_id: "wngBTHJ59-u7Hyek-RpttQ"
[2024-01-08 14:38:51,271 - WARNING] Request made: ClientCustomerId:
5901767327, Host: googleads.googleapis.com, Method:
/google.ads.googleads.v14.services.CampaignService/MutateCampaigns,
RequestId: wngBTHJ59-u7Hyek-RpttQ, IsFault: True, FaultMessage: The
operation is not allowed for the given context.
And in the attachment is the UI I am using. There is no UI from the google
ads manager. Is this enough or do you need more?
Kind regards,
Siebert Looije
Op donderdag 4 januari 2024 om 19:50:53 UTC+1 schreef Google Ads API Forum
Advisor:
> Hi Siebert,
>
> Thank you for getting back to us.
>
> To investigate this issue further, please provide us with
> the complete API logs (*request*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
> and
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> *response*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> with
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> *request-id*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> and
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>*request
>
> header*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>
> generated at your end along with the uncropped UI screenshot (with visible
> customer Id) 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*
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
> , *.Net*
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> , *PHP*
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> , *Python*
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
> , *Ruby*
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
> or *Perl*
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging>
> to
> enable logging at your end. For REST interface requests, you can
> enable logging via the curl command by using the -i flag.
>
> This message is in relation to case "ref:!00D1U01174p.!5004Q02r5NWk:ref"
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/df02dc23-2aa6-4b42-af1b-70bacc5db227n%40googlegroups.com.