[AdWords Script] TypeError: Cannot call method „toFixed“ of null. (line 129)

AdWords

Setting up the Multibidder Script on an AdWords Account I had the Error TypeError: Cannot call method „toFixed“ of null. (line 129). Correct the script as following:

Inser after Line 124:


if (newBid == null) {
newBid = 0.01;
}

That is it!

Bachelor of Arts mit Schwerpunkt Handel, seit 2007 im Online Marketing spezialisiert. Neben langjähriger Erfahrung mit Magento, zertifizierter Google Partner mit Spezialisierung auf AdWords Accounts für E-Commerce Shops.

1 Comment

  1. Alex 4 Monaten Antworten

    Replace
    else if (action == ‚Set to First Page Cpc‘ ||
    action == ‚Set to Top of Page Cpc‘) {
    var newBid = action == ‚Set to First Page Cpc‘ ?
    keyword.getFirstPageCpc() : keyword.getTopOfPageCpc();
    var isPositive = newBid > oldBid;
    newBid = applyStopLimit(newBid, stopLimit, isPositive);
    }

    auf

    else if (action == ‚Set to First Page Cpc‘ ||
    action == ‚Set to Top of Page Cpc‘) {
    if (action == ‚Set to First Page Cpc‘ || keyword.getTopOfPageCpc() === null) {
    var newBid = keyword.getFirstPageCpc()
    } else {
    var newBid = keyword.getTopOfPageCpc();
    }
    var isPositive = newBid > oldBid;
    newBid = applyStopLimit(newBid, stopLimit, isPositive);