Hi,

I'm trying to set the status of a campaign asset to "removed," but it's not 
working. It works fine for "enabled" and "paused," but not for "removed."
Here is the request - 

{ "customerId": "4973912890", "operations": [ { "update": { "resourceName": 
"customers/4973912890/campaignAssets/22149701508~196763859340~SITELINK", 
"status": "REMOVED" }, "updateMask": "resourceName,status" } ] }
    CustomerId: "4973912890"
    Operations: Count = 1
    PartialFailure: false
    ResponseContentType: Unspecified
    ValidateOnly: false

Here is the error logs  -
{"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an 
invalid argument.\")"}
    Data: {System.Collections.ListDictionaryInternal}
    Failure: { "errors": [ { "errorCode": { "requestError": 
"INVALID_ENUM_VALUE" }, "message": "Enum value 'REMOVED' cannot be used.", 
"location": { "fieldPathElements": [ { "fieldName": "operations", "index": 
0 }, { "fieldName": "update" }, { "fieldName": "status" } ] } } ], 
"requestId": "mM_ilfu3CL2CfDKNrTdm1w" }
    HResult: -2146233088
    HelpLink: null
    InnerException: null
    Message: "Status(StatusCode=\"InvalidArgument\", Detail=\"Request 
contains an invalid argument.\")"
    RequestId: "mM_ilfu3CL2CfDKNrTdm1w"
    Source: "Google.Ads.Gax"
    StackTrace: "   at 
Google.Ads.Gax.Interceptors.UnaryRpcInterceptor.<>c__DisplayClass1_0`2.<Intercept>b__0(Task`1
 
oldTask)\r\n   at 
System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n 
  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread 
threadPoolThread, ExecutionContext executionContext, ContextCallback 
callback, Object state)\r\n--- End of stack trace from previous location 
---\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& 
currentTaskSlot, Thread threadPoolThread)\r\n--- End of stack trace from 
previous location ---\r\n   at 
Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.<>c__DisplayClass4_0.<<CallAsync>g__WaitAndCallHandlers|0>d.MoveNext()\r\n
 
  at Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task 
task)\r\n   at 
Google.Api.Gax.TaskExtensions.ResultWithUnwrappedExceptions[T](Task`1 
task)\r\n   at 
Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.CallSync(TRequest request, 
CallSettings callSettings)\r\n   at 
Google.Api.Gax.Grpc....................................................................."
    Status: StatusCode = InvalidArgument, Detail = "Request contains an 
invalid argument."
    StatusCode: InvalidArgument
    TargetSite: {T <Intercept>b__0(System.Threading.Tasks.Task`1[T])}
    Trailers: Count = 3




 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/5f5ccc70-ec70-4482-a733-90ec6f7227dbn%40googlegroups.com.
  • Unable to Set Camp... Shahil Verma

Reply via email to