Hi Sai Teja,

thank you for your answer, which unfortunately didn't help me at all.
After many hours of trial and error (and I tried everything like str(), 
rep(), tuple(), for ... inside the .In() or in seperate variables or defs), 
I finally found the solution. It's called "unpacking argument-lists" in 
Python and "splat" in Ruby or Perl:
https://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists

This is what the correct code looks like:
campagin_ids = [1435278870, 2345678901, 3456789012]          
query = (adwords.ServiceQueryBuilder()
  .Select('Id', 'Status')
  .Where('BaseCampaignId').In(*campaign_ids)#Pay attention to the asterisk 
"*" in front of the object!        
  .Build())


To be honest, I wonder why you couldn't call this solution. This is 
certainly a problem that everyone will encounter sooner or later if they 
want to use the AdWords-API. In my opinion, this should be prominently 
featured in the AWQL documentation.

Best regads
Matthias



It's hard to believe that there is no

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95e980e6-2535-4496-99f9-68e2d8c680c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to