I have uploaded the image asset using the following Java code: 
https://github.com/googleads/google-ads-java/blob/64edbf9a03373e9fa8142caa59a8ab4705aa0086/google-ads-examples/src/main/java/com/google/ads/googleads/examples/misc/UploadImageAsset.java

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: 
https://github.com/googleads/google-ads-java/blob/64edbf9a03373e9fa8142caa59a8ab4705aa0086/google-ads-examples/src/main/java/com/google/ads/googleads/examples/extensions/AddImageExtension.java

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:443
Headers: {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
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/6dec437c-620b-4f77-b6ec-30c6ae4cc2een%40googlegroups.com.

Reply via email to