Expected argument of type object, but instead had type object.

995 views
Skip to first unread message

Jean-Francois Allaire

unread,
Mar 14, 2019, 5:40:08 PM3/14/19
to AdWords API and Google Ads API Forum
Hello, this is more of a constructive comment than a question.

The error mentioned in the title got me searching...

I found that when using


Object.prototype.toString.call(null)


Javascript traditionally returns the following:

"[object Null]" 

But Google Ads Scripts returns

"[object Object]"

I don't know if this is dependant to a version of Ecmascript... (wouldn't think so).


Well, I have a question:

Is there a list of known issues somewhere? (if yes, maybe this is already there)

googleadsapi...@google.com

unread,
Mar 14, 2019, 10:43:46 PM3/14/19
to AdWords API and Google Ads API Forum
Hi Jean,

Your issue seems to be related to Google Ads Scripts rather than the AdWords API. I would suggest to post your issue in the Google Ads Scripts Forum as they are better equipped to assist you in your issue on Google Ads Scripts.

Thanks and regards,
Luis
AdWords API Team


Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a6f1135b-e56b-438b-93a0-93915cd2d444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages