Creating Shopping Ad fails - Google Ad Script API

44 views
Skip to first unread message

John Pelelis

unread,
Nov 28, 2022, 7:48:08 AM11/28/22
to Google Ads API and AdWords API Forum
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
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)
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"}]}})]

Google Ads API Forum Advisor

unread,
Nov 28, 2022, 10:24:57 AM11/28/22
to jo...@margera.co, adwor...@googlegroups.com
Hi John,

Thank you for reaching out to the Google Ads APi support team.

We provide assistance to issues/concerns related to the AdWords API / Google Ads API. I'm afraid that we cannot further assist you as our team can only provide support to users with  Google Ads Script API technical concerns or issues.With that being said, let me forward your concern to the  Google Ads Script API support team. Rest assured that someone from their team will continuously assist you.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gfyF0:ref

Google Ads API Forum Advisor

unread,
Nov 29, 2022, 3:53:53 AM11/29/22
to jo...@margera.co, adwor...@googlegroups.com
Hi John,

This is Carmela from the Google Ads API support team as well. 

Since this is related to the Google Ads Scripts rather than Google Ads API, I would suggest reaching out to the Google Ads Scripts support team by posting your concern in the Ads script forum. Also, it will be helpful if you can provide the below information when you reach out to them, so that they can directly investigate the raised issue:​ 
  • Google Ads account ID / CID
  • Script name

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gfyF0:ref

John Pelelis

unread,
Nov 29, 2022, 7:40:04 AM11/29/22
to Google Ads API and AdWords API Forum
Hello Carmela and Nirmita,

Thanks for reaching out so fast. Will reach to ads script forum then.

Thank you,
John
Reply all
Reply to author
Forward
0 new messages