Price Extensions Filter - New Script Experience

32 views
Skip to first unread message

Miguel Hernandez

unread,
Apr 27, 2022, 8:30:43 AM4/27/22
to Google Ads API and AdWords API Forum
Hi everyone,

I want to migrate one of our scripts to the New Script Experience and I don't know how I can transform the following code that filters price extensions:

      // Set builders
      var priceItemBuilder = AdsApp.extensions().newPriceItemBuilder();
      var priceBuilder = AdsApp.extensions().newPriceBuilder();      
      var priceIterator = AdsApp
            .extensions()
            .prices()
            .withCondition("Status = ENABLED")
            .withCondition("PolicyApprovalStatus IN ['APPROVED','APPROVED_LIMITED', 'DISAPPROVED']")
            .get();

Can someone help me please?

Thanks in advance,
Miguel

Google Ads API Forum Advisor

unread,
Apr 27, 2022, 2:08:50 PM4/27/22
to mig...@optimanova.com, adwor...@googlegroups.com
Hi Miguel,

Thank you for reaching out to the Google Ads API support team.

With regards to your concern to the Google Ads Script, we would recommend to post your concern on Google Ads Scripts forum via this link instead for further assistance.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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