Hello there,

I am trying to create a shopping ad through google ads script interface, 
but while following exact instructions from documentation 
<https://developers.google.com/google-ads/scripts/docs/examples/shopping#create-product-ads>
 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*

*[image: newAdBuilder.png]*

*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)
[image: changes-tab.png]
- 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"}]}})]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d25907df-83e4-4a28-8b08-2f0aebf493b1n%40googlegroups.com.

Reply via email to