And it is working fine, but I do not receive permission when I try do add the image asset obtained early as a image extension using this code:
I have done many operations using basic and advanced example codes and they work like a charm. I am using a test account.
Check the result:
WARN [grpc-default-executor-0] 09:57:16,315 com.google.ads.googleads.lib.request.summary FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v15.services.ExtensionFeedItemService/MutateExtensionFeedItems, Endpoint:
googleads.googleapis.com:443, CustomerID:
7403329556, RequestID: JsLIVfNVG0wC1inw1L0KPQ, ResponseCode: INVALID_ARGUMENT, Fault: Request contains an invalid argument..
INFO [grpc-default-executor-0] 09:57:16,381 com.google.ads.googleads.lib.request.detail FAILURE REQUEST DETAIL.
Request
-------
MethodName: google.ads.googleads.v15.services.ExtensionFeedItemService/MutateExtensionFeedItems
Endpoint:
googleads.googleapis.com:443Headers: {developer-token=REDACTED, login-customer-id=9590626066, x-goog-api-client=gl-java/11.0.18 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 grpc/1.56.1}
Body: customer_id: "
7403329556"
operations {
create {
image_feed_item {
image_asset: "customers/
7403329556/assets/125954515109"
}
}
}
Response
--------
Headers: Metadata(content-type=application/grpc,request-id=JsLIVfNVG0wC1inw1L0KPQ,date=Wed, 14 Feb 2024 12:58:52 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)
Body: null
Failure message: errors {
error_code {
operation_access_denied_error: MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT
}
message: "A mutate action is not allowed on this resource, from this client."
trigger {
string_value: "ADVERTISER_PROVIDED_IMAGE"
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
}
}
request_id: "JsLIVfNVG0wC1inw1L0KPQ"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
Request ID JsLIVfNVG0wC1inw1L0KPQ failed due to GoogleAdsException. Underlying errors:
Error 0: error_code {
operation_access_denied_error: MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT
}
message: "A mutate action is not allowed on this resource, from this client."
trigger {
string_value: "ADVERTISER_PROVIDED_IMAGE"
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
}