TypeError: Cannot read properties of undefined (reading 'productItemId')

114 views
Skip to first unread message

Jay Wilner

unread,
Apr 21, 2024, 6:09:54 PM4/21/24
to Google Ads Scripts Forum
Hello,

Trying to get some help on this (previously submitted, see below) bug:

==============================================================

Getting this error: "TypeError: Cannot read properties of undefined (reading 'productItemId')" when trying to run my script.

Screenshot 2024-04-21 at 5.03.34 PM.png

NOTE: this is the exact same script used on another account where it runs perfectly. 

Screenshot 2024-04-21 at 5.06.12 PM.png

The only change was to change to google sheet url/id.

My understanding for this error, from another post here: https://groups.google.com/g/adwords-scripts/c/Y92HY3YoyQQ?pli=1, indicates there is a variable missing data but i did log the 'row' variable and there is data in there.

================================================
Prior response from Google: Apr 12, 2024, 12:37:02 PM (9 days ago)

Hi Jay,

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

Kindly note that the error message "TypeError: Cannot read properties of undefined (reading 'productItemId')" in your Google Ads Script indicates that your script is trying to access a property of a variable that doesn't have any values assigned to it. This is usually caused by an undefined variable or an error in retrieving data from Google Ads or a spreadsheet.

Kindly provide us with the following details:

  • Google Ads account ID / CID
  • If the script uses a spreadsheet, please provide a shareable link to the spreadsheet.
=======================================
Hello Google Ads script support,

Thanks in advance for any help,

Google Ads Scripts Forum Advisor

unread,
Apr 22, 2024, 4:34:44 AM4/22/24
to adwords...@googlegroups.com

Hi Jay,

To investigate further on this issue, kindly provide us with the following details:

  • Google Ads account ID / CID
  • If the script uses a spreadsheet, please provide a shareable link to the spreadsheet
You can share the requested details via Reply privately to the author option or a direct private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02tP1ap:ref" (ADR-00230758)

Thanks,
 
Google Logo Google Ads Scripts Team


Jay Wilner

unread,
Apr 22, 2024, 5:29:21 PM4/22/24
to Google Ads Scripts Forum
Thanks for your response. Unfortunately, the "Reply privately to the author option or a direct private reply" options are disabled (see screenshot below).

I really need your help. Is there another way to get this information to you?


Screenshot 2024-04-22 at 4.23.29 PM.png

Jay Wilner

unread,
Apr 22, 2024, 5:31:47 PM4/22/24
to Google Ads Scripts Forum
It looks like i don't have permissions to reply to author. Can you change my permssions?  Sorry for the trouble.

Screenshot 2024-04-22 at 4.29.52 PM.png


Ads India

unread,
Apr 23, 2024, 8:26:02 AM4/23/24
to Google Ads Scripts Forum on behalf of adsscripts
Hi Jay,

The concern account id is 741-792-8069, we are facing issues in conversion tracking tags. Kindly investigate thoroughly and provide support on this ASAP.

Regards,

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/sN0Tk000000000000000000000000000000000000000000000SCC55300z7dYbhAqSwWMlmGeL9Xo9g%40sfdc.net.

Jay Work

unread,
Apr 23, 2024, 8:44:46 AM4/23/24
to Google Ads Scripts Forum
Hello, 

1. I’m confused. This account: 741-792-8069 
is not our account. Not sure who that is.

2. “Facing issues with tracking tags.” - what do you mean here? The error I am facing has to do with our google ads script. Are you saying our script is not working due to tacking tags?

3. Account in question: 781-438-3043

Please clarify. Thank you!

Jay Wilner
913-220-0280 mobile 
Outofboundscommunications.com

Sent from my iPhone,excuse my typos and abbreviations!

On Apr 23, 2024, at 7:26 AM, Google Ads Scripts Forum <adwords...@googlegroups.com> wrote:


You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/hjwnPlgi_7M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/CAC%3Dnx1-HuB%3DRgSyv882UX5%2Bw0604XYEzdzwTML5zKWZJehrQtg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages