Not allowed to add image extension

37 views
Skip to first unread message

Peter Baptist

unread,
Feb 14, 2024, 8:09:27 AM2/14/24
to Google Ads API and AdWords API Forum
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
  }
}
Reply all
Reply to author
Forward
0 new messages