Bug in new script experience: result.getCustomerId() => "123456789" instead "123-456-7890"

30 views
Skip to first unread message

Holger Schulz

unread,
Jun 27, 2022, 9:24:16 PM6/27/22
to Google Ads Scripts Forum
Hi,

this script returns with the new script experience for  result.getCustomerId() => "123456789" instead "123-456-7890".

function main() {
  const accountSelector = AdsManagerApp.accounts().withLimit(2);
  accountSelector.executeInParallel('processAccount', 'allFinished');
}

function processAccount() {
  return AdsApp.currentAccount().getCustomerId();
}

function allFinished(_results) {
  for (var i=0; i<_results.length; i++) {
    var result = _results[i];
    Logger.log("result.getCustomerId() : "+result.getCustomerId()); // BUG: "123456789" instead of  "123-456-7890" in new script experience
    Logger.log("result.getReturnValue(): "+result.getReturnValue()); // "123-456-7890" (ok)
  }
}


That's different to the documentation and different to the old script experience.
https://developers.google.com/google-ads/scripts/docs/reference/adsmanagerapp/adsmanagerapp_executionresult#getCustomerId_0

Ciao
       Holger

Google Ads Scripts Forum Advisor

unread,
Jun 28, 2022, 1:13:00 AM6/28/22
to adwords...@googlegroups.com

Hi Holger,


Thanks for reaching out to the Google Ads Scripts support team. I hope you are doing well today.
 

With regards to your concern, upon checking your implementation on my end I got the same result. With this, allow me to raise this to the rest of the team for further insights and analysis. Rest assured that I will get back to you in this thread once I have more information regarding the issue.
 

Regards,

Google Logo
Darwin
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2cDqZ6:ref

Holger Schulz

unread,
Jun 28, 2022, 11:15:21 AM6/28/22
to Google Ads Scripts Forum on behalf of adsscripts

Hi Darwin,

of course you can pass this on to your team. The main thing is that my reported bugs are fixed:-)

Thank you for your super quick feedback

      Holger

Kontaktdaten zum Importieren ins Adressbuch:
https://www.data-inside.de/holger-schulz-admigo.vcf
Facebook: https://www.facebook.com/holger.schulz.376

####### Internet-Marketing & Google Ads Agentur #######

data-inside GmbH, Unterscheideweg 14, 42499 Hückeswagen
h...@data-inside.de   -  www.internet-marketing-inside.de
Fon: +49 (2192) 91 89 921  -  Fax: +49 (2192) 91 89 919
Amtsgericht Köln           -   Registernummer HRB 89354
Geschäftsführer:               Dipl.-Ing. Holger Schulz
Umsatzsteueridentifikationsnummer:       DE 814 640 643 
ref:_00D1U1174p._5004Q2cDqZ6:ref --
-- 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 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/IMc9y0FtGKo/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/DspZW000000000000000000000000000000000000000000000RE695F00u86RXIGuSBiA9QxLOpyFvA%40sfdc.net.

Google Ads Scripts Forum Advisor

unread,
Jul 14, 2022, 5:49:09 AM7/14/22
to adwords...@googlegroups.com

Hello Holger, 

James here, also a member of the Google Ads scripts support team. I would like to inform you that the issue with the getCustomerId method is now resolved. Can you please try it and let me know how it goes on your end?

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2cDqZ6:ref
Reply all
Reply to author
Forward
0 new messages