Hello there,
I am trying to create a shopping ad through google ads script interface, but while following exact instructions
from documentation it always fail.
The error I get are the following (see end of message for full error message
- In Preview mode: "mutateError":"RESOURCE_NOT_FOUND" [1]
- In Run mode: IMMUTABLE_FIELD [2]
The code I use
Why I believe it is an API issue
I have checked the following that justifies that my code is correct:
- The "Changes" tab shows that both the campaign and Ad group are found (so I am not calling something that doesn't exist)
- If I create the ad through Google Ads UI, it is created succesfully
- I have tested the ad creation even after 12h, but still can't make the ad creation
Any ideas on how to tackle this? Is this an API issue or am I doing something wrong here?
Thank you,
John
---------------------
PS. Full error message:
[1] Creation failed with errors: Resource was not found. ({"errorCode":{"mutateError":"RESOURCE_NOT_FOUND"},"message":"Resource was not found.","location":{"fieldPathElements":[{"fieldName":"mutate_operations","index":0},{"fieldName":"ad_group_ad_operation"},{"fieldName":"create"},{"fieldName":"ad"},{"fieldName":"resource_name"}]}})
[2] The field attempted to be mutated is immutable. ({"errorCode":{"fieldError":"IMMUTABLE_FIELD"},"message":"The field attempted to be mutated is immutable.","location":{"fieldPathElements":[{"fieldName":"mutate_operations","index":0},{"fieldName":"ad_group_ad_operation"},{"fieldName":"create"},{"fieldName":"ad"}]}})]