That looks like it should work. What is the output? Try using the EQUALS 
operator:

$selector->predicates[] = new Predicate('AdGroupId', 'EQUALS', 
'16599044572') ;  //16599044572 is the group id

Also, the docs 
<https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.Predicate>
 
say "The Operator.CONTAINS_ALL 
<https://developers.google.com/adwords/api/docs/reference/v201409/ConversionTrackerService.Operator.html#CONTAINS_ALL>,
 
Operator.CONTAINS_ANY 
<https://developers.google.com/adwords/api/docs/reference/v201409/ConversionTrackerService.Operator.html#CONTAINS_ANY>,
 
Operator.CONTAINS_NONE 
<https://developers.google.com/adwords/api/docs/reference/v201409/ConversionTrackerService.Operator.html#CONTAINS_NONE>,
 
Operator.IN 
<https://developers.google.com/adwords/api/docs/reference/v201409/ConversionTrackerService.Operator.html#IN>
 
and Operator.NOT_IN 
<https://developers.google.com/adwords/api/docs/reference/v201409/ConversionTrackerService.Operator.html#NOT_IN>
 
take multiple values. All others take a single value. " so I removed the 
array in the last argument.

On Monday, January 12, 2015 at 4:30:23 AM UTC-8, Kiran Kumar wrote:
>
>
> Hi,
>
> I am getting the AdPerformance Reports using google adwords api,but I want 
> customized reports like by providing Adgroup Id or Adgroup name .
>
> Is there any way to write the condition to the code so that we can 
> download desired data as per the adgroup id or adgroup name
>
> I am trying one predicate but it is not working 
>
>
> $selector->predicates[] = new Predicate('AdGroupId', 'CONTAINS', 
> array('16599044572')) ;  //16599044572 is the group id
>
>
> it's giving the output as some triggered values..
>
> please let me know the procedure to get reports based on the group id
>
> Thank you ! 
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d82a8fed-4155-4440-b758-9777fabb979f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to