I'm running a script that uses the headline and description fields from the Responsive Search Ads.
It was working absolutely fine until yesterday evening, when suddenly a mysterious error appeared:
"TypeError: Cannot find function map in object LiteArray."
This appears to relate to the method by which headlines (and descriptions) are identified within the fields of the ad, which looks like this in the code:
ad.asType().responsiveSearchAd().getHeadlines()
This worked fine before, but now is throwing the error above. Same for descriptions. Although paths and URLs, somewhat oddly, can still be returned without issue.
I'm really baffled - the script was working and unchanged, and then suddenly stopped working last night without anything being done to it. I suspect that perhaps the taxonomy of how to acquire the text fields of an RSA ad have changed or been removed, although it's not obvious how they can now be accessed if so.
Any ideas as to what's going wrong would be welcome - I've included a short version of the code, which throws the same error, below, for reference:
"function main() {
var adSelector = AdWordsApp
.ads()
.withCondition("CampaignStatus != REMOVED")
.withCondition("AdGroupStatus != REMOVED")
.withCondition("AdType = VERSATILE_TEXT_AD")
.orderBy("AdGroupId ASC")
var adIterator = adSelector.get();
while (adIterator.hasNext()) {
var ad = adIterator.next();
var adId = ad.getId();
var adIsPaused = ad.isPaused();
var adgroupId = ad.getAdGroup().getId();
Logger.log(ad.asType().responsiveSearchAd().getHeadlines());
}
}"
Проблема еще не решена! Её надо решить!
--
Отправлено из Mail.ru для Android
--
-- 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/cd4736ed-271c-45d5-be4b-f7dc93c07c36%40googlegroups.com.
Hi Naman,
Could you confirm if you are encountering the same error TypeError: Cannot find function map in object LiteArray. that Jonathan encountered? If yes, so that I can further investigate the issue, could you provide your CID and script name via Reply privately to author? I was not able to replicate the error with the script that Johnathan provided previously.
Hi Евгений Некрасов,
Thank you for posting and I'm sorry that we only provide support in English.
Could you confirm if you are encountering the same error above? If yes, could you provide your CID and script name via Reply privately to author? Otherwise, please create a new forum thread for new topics for better tracking and we'll gladly assist you.
Regards,
Hiroyuki
Google Ads Scripts Team
Hi Naman,
Thank you for providing the additional information privately.
I was able to replicate the issue. With this, I will file a bug for this error and we'll let you know once updates are available.
Regards,
Hiroyuki
Google Ads Scripts Team
Hi everyone,
We would like to inform you that the issue with Responsive Search Ads that shows TypeError: Cannot find function map in object LiteArray. has now been fixed.
Please inform us if you still encounter the error on your end.
Regards,
Hiroyuki
Google Ads Scripts Team