Hi, I have a script which is designed to fetch an array of keywords, and 
add them to an account level negatives list. 

The script runs fine, but doesn't actually make any changes to the shared 
list.

Snippet using a fixed string for keywords:

   if(account.getName() == 'XYZ'){
    var keywords = ["planes", "trains"]
    var list = AdsApp.negativeKeywordLists().withCondition("Name CONTAINS 
'list_name'").get();
      while (list.hasNext()){
        var ex_list = list.next();
              ex_list.addNegativeKeywords(keywords);
   }
  }

Is this an issue with my script or the AdsApp.negativeKeywordLists()  ?

Thanks,
Dennis

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/36538b43-5a32-4360-b9b5-98b8416af80an%40googlegroups.com.
  • ne... Dennis Kreeft
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to