Hi,
I am trying to filter the result of AdGroup by campaignId. The code worked 
when no filter is added but when I add predicate I got a 
Missing_predicate_operator error in run time. 
I stepped through the code and I can see clearly the prediate field is 
EQUALS. 

Here is the exception:
ex = {"[SelectorError.MISSING_PREDICATE_OPERATOR @ serviceSelector, 
RequiredError.REQUIRED @ serviceSelector.predicates[0].operator]"}

Here is my code, please help!
 
                   // Create a selector.
                    GoogleAdGroup.Selector selector = new 
GoogleAdGroup.Selector();
                    selector.fields = new string[] { "Id", "CampaignId", 
"Name" };

                    // Set a filter condition.
                    GoogleAdGroup.Predicate campaignPredicate = new 
GoogleAdGroup.Predicate();
                    campaignPredicate.field = "CampaignId";
                    campaignPredicate.@operator = 
GoogleAdGroup.PredicateOperator.EQUALS;
                    campaignPredicate.values = new string[] { 
pcampaign.Id.ToString() };
                    selector.predicates = new GoogleAdGroup.Predicate[] { 
campaignPredicate };

                    AdGroupPage adgrups = null;
                    adgrups = adgroupService.get(selector);

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to