Yasar,
You can't set resource_name on ImageAdInfo as ImageAdInfo is not a resource
: https://developers.google.com/google-ads/api/reference/rpc/v9/ImageAdInfo
Here is a request, with no specific customer details, that fails when you
only send in the resource_name and final_urls, with no empty image_ad
The requestId is uw7YdhxS3sdzQ48GMofxcQ
Request:
MethodName: google.ads.googleads.v9.services.AdService/MutateAds
operations {
update {
resource_name: "customers/ABC/ads/XYZ"
final_urls: "https://www.update.com/"
}
update_mask {
paths: "final_urls"
}
}
Response:
Body: null
Failure message: errors {
error_code {
ad_error: CANNOT_MODIFY_AD
}
message: "Cannot modify an ad."
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "update"
}
field_path_elements {
field_name: "resource_name"
}
}
}
request_id: "uw7YdhxS3sdzQ48GMofxcQ"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an
invalid argument., cause=null}.
I have emailed that address with customer specific details.
Pete
On Tuesday, January 18, 2022 at 6:52:06 AM UTC-5 adsapi wrote:
> Hi Pete,
>
> Thanks for getting back to us.
>
> Kindly note that *ExpandedTextAdInfo*
> <https://developers.google.com/google-ads/api/reference/rpc/v9/ExpandedTextAdInfo>
>
> are mutable while *ImageAdInfo*
> <https://developers.google.com/google-ads/api/reference/rpc/v9/ImageAdInfo>
> are immutable. Upon checking your API request for image_ad, I do see an
> empty image_ad { } in your second comment. However, could you retry your
> request by passing the resource name in image_ad { } for image_ad? Also,
> could you provide us the complete *request*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>
> and *response*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>
> logs with *request ID*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>
> generated for RESOURCE_NAME_MISSING error, so that our team can better
> check?
>
> In addition, I had to delete your last posts as it contained your
> sensitive logs. Kindly send the requested information via the *Reply
> privately to author* option. If this option is not available, you may
> send the details directly to our [email protected] alias instead.
>
> Regards,
> [image: Google Logo]
> Yasar
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2UjSMG:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/459d764f-1766-4767-9607-321371c26f5bn%40googlegroups.com.