Hi Brett,

Thanks for your reply.

Finally, it was a code 18 :) The IN operator works great.

Stéphane

On Thursday, September 5, 2013 1:14:02 AM UTC-4, Brett Baggott wrote:
>
> Stephane, try this instead:
>
> Predicate predicate = new Predicate();
> predicate.field = "Status";
> predicate.@operator = PredicateOperator.IN;
> predicate.values = new string[] {"ACTIVE", "PAUSED"};
> selector.predicates = new Predicate[] {predicate};
>
>
> I think the problem might be in how you have delimited your "ACTIVE, 
> PAUSED" values as one value.
>
> On Wednesday, September 4, 2013 11:12:24 PM UTC-5, Stephane wrote:
>>
>> Hi,
>>
>> We are using the dot net client library for Adwords (
>> https://code.google.com/p/google-api-adwords-dotnet/)
>>
>> We ran into a weird behavior regarding the operator IN. We built a query 
>> so we can get some metrics for campaign that have their status to ACTIVE or 
>> PAUSED. To do so, we use the operator IN like CampaignStatus IN 
>> {ACTIVE,PAUSED}.
>>
>> We would have thought that the result would be taken from campaigns that 
>> are active OR paused. But the reality is that it sends only data for the 
>> first predicate. 
>>
>> CampaignStatus IN {ACTIVE,PAUSED} -> Sends only active campaigns.
>> CampaignStatus IN {PAUSED, ACTIVE} -> Sends only paused campaigns
>>
>> Creating two predicates results in an AND and doesn't return any data 
>> since a campaign can't be active and paused at the same time.
>>
>> Am I missing something here? Any idea how we could create a predicate so 
>> we can filter campaigns whose status are active OR paused?
>>
>> Thanks,
>>
>> Stéphane
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to