GithubHelp home page GithubHelp logo

Comments (3)

markoffk avatar markoffk commented on August 16, 2024

Hello!
Issue is still appearing in 1.15.

Trying to make such a call:

customer.campaignCriteria.update({
    resource_name: criteriaItem.campaign_criterion.resource_name,
    bid_modifier: 0 as any, // error in typings
});

Producing following error:

TypeError: valueType.startsWith is not a function
    at toProtoValueFormat (/usr/src/app/node_modules/google-ads-node/build/lib/utils.js:101:19)
    at unroll (/usr/src/app/node_modules/google-ads-node/build/lib/utils.js:90:19)
    at Object.convertToProtoFormat (/usr/src/app/node_modules/google-ads-node/build/lib/utils.js:86:26)
    at GoogleAdsClient.buildResource (/usr/src/app/node_modules/google-ads-node/build/lib/client.js:86:41)
    at GrpcClient.buildResource (/usr/src/app/node_modules/google-ads-api/build/grpc.js:121:28)
    at CampaignCriterionService.buildResource (/usr/src/app/node_modules/google-ads-api/build/services/service.js:211:32)
    at CampaignCriterionService.<anonymous> (/usr/src/app/node_modules/google-ads-api/build/services/service.js:69:33)
    at Generator.next (<anonymous>)
    at /usr/src/app/node_modules/google-ads-api/build/services/service.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/src/app/node_modules/google-ads-api/build/services/service.js:4:12)
    at CampaignCriterionService.serviceUpdate (/usr/src/app/node_modules/google-ads-api/build/services/service.js:59:16)
    at CampaignCriterionService.<anonymous> (/usr/src/app/node_modules/google-ads-api/build/services/campaign_criterion.js:49:25)
    at Generator.next (<anonymous>)
    at /usr/src/app/node_modules/google-ads-api/build/services/campaign_criterion.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/src/app/node_modules/google-ads-api/build/services/campaign_criterion.js:4:12)
    at CampaignCriterionService.update (/usr/src/app/node_modules/google-ads-api/build/services/campaign_criterion.js:48:16)

from google-ads-node.

kritzware avatar kritzware commented on August 16, 2024

Hi @markoffk, we've just released a hot fix for this in google-ads-node 1.15.2. This change should be upstreamed into google-ads-api within hours of this comment, so make sure to look out for a new release over there. 👍

Let us know if you have any other problems!

from google-ads-node.

markoffk avatar markoffk commented on August 16, 2024

@kritzware Thanks! It works now.

from google-ads-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.