Inkorrekte Fehlermeldung bei Umstellung auf neues Backend

33 views
Skip to first unread message

ACONI GmbH

unread,
Aug 19, 2022, 7:52:14 AM8/19/22
to Google Ads Scripts Forum
Incorrect error message when switching to new backend.

I am not a developer, but a marketing manager!

Switching via the on/off button at the top of the script editor of the new Google Ads scripts generates the following errors:

8/19/2022 09:30:42 AdGroup.getKeywordMaxCpc() is deprecated. Use AdGroup.bidding().getCpc() instead.
19.8.2022 09:30:43 TypeError: keyword.getMaxCpc is not a function
    at Object.DATAINSIDE.AdWordsApi.checkCpcAndSendMail (Code:931:35)
    at main (Code:967:23)

The code works fine in the old backend and does not generate any errors!

The documented errors are not traceable. There is no AdGroup.getKeywordMaxCpc() in the script, so I can't replace it either. And where should be the tip error: keyword.getMaxCpc in the script?



Translated with www.DeepL.com/Translator (free version)

Google Ads Scripts Forum Advisor

unread,
Aug 22, 2022, 2:44:55 AM8/22/22
to adwords...@googlegroups.com

Hello,

 

Thank you for reaching out to us, this is Yasmin from the Google Ads Scripts team.

 

Thank you for detailing the issue you've encountered. As per the error, I believe that AdGroup.getKeywordMaxCpc() has been deprecated and that you may use the bidding().getCpc() method instead.

 

With that being said, however, I would request that you provide the following information below so we're able to check the script you had mentioned to be receiving errors in and better address this issue:

  • Google Ads account ID / CID
  • Script name
  • Shareable link (guide) of your spreadsheet, if applicable.

 

Kindly send the requested items via `Reply privately to author` option. If the said option is not available on your end, you may send those through this email alias <googleadsscr...@google.com> instead.

 

Regards,

 

Google Logo
Yasmin Gabrielle
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2dlX9h:ref

Google Ads Scripts Forum Advisor

unread,
Aug 29, 2022, 11:33:20 PM8/29/22
to adwords...@googlegroups.com

Hello,

Based on the given error message and upon checking with your script named `Google Ads Alert`, I observed that it is still utilizing getKeywordMaxCpc method which has been deprecated and no longer supported in the new script experience version. Having said that, as mentioned also with the given error message, you need to use AdGroup.bidding().getCpc() instead.

Please be informed that enabling or toggling on the new script experience button within your script editor will not automatically convert or migrate your existing script. However, as we have mentioned in our blog post, you should manually move your scripts over to the new script experience before then to ensure continued functionality. 

Upon taking a closer look with the given scripts, I observed that your scripts are already outdated and you haven’t migrated the code snippets of your scripts into the new script experience setup, which is the main reason why those scripts are not working properly on your end. As I mentioned above, you need to make some adjustments to your code snippet for it to work in the new script experience version. To migrate your script, you may follow our migration guide.

You may navigate to the following links below for additional references:

Since you mentioned that you’re not a developer, then you’ll be needing someone from your end who has a knowledge on programming in order to migrate your scripts in your account. 

Let me know if you have any questions.

Regards, 

Google Logo
James Howell
Google Ads Scripts Team
 


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