Hi Pete,
Thanks for reaching out to the Google Ads API Forum.
For your question "Are final urls of Image Ads mutable?", Yes. However, ImageAdInfo is immutable. Upon checking your API request, I can see that you’re adding different attributes in update_mask. I have updated the final Urls of my Image Ad as seen below:
{
"operations": [
{"update": {
'type': 'IMAGE_AD',
'resource_name': "customers/***/ads/559983145860",
'id': '573016978749',
'final_urls': "https://www.update.com/"
},
'update_mask': {
'paths': "final_urls"
}
} ],
"partialFailure": true}
Response:
{
"results": [
{
"resourceName": "customers/****/ads/****45860"
}
]
}
Hope this helps. Let us know if you have any additional questions.
Regards,
|
||||||
Hi Pete,
Thanks for getting back to us.
Kindly note that ExpandedTextAdInfo are mutable while 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 and response logs with 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 googleadsa...@google.com alias instead.
Regards,
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