How can we get the AdPerformanceReport by providing Adgroup id or name

29 views
Skip to first unread message

Kiran Kumar

unread,
Jan 12, 2015, 7:30:23 AM1/12/15
to adwor...@googlegroups.com

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 !

Stacie Waleyko

unread,
Jan 12, 2015, 9:45:04 AM1/12/15
to adwor...@googlegroups.com
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 say "The Operator.CONTAINS_ALL, Operator.CONTAINS_ANY, Operator.CONTAINS_NONE, Operator.IN and Operator.NOT_IN take multiple values. All others take a single value. " so I removed the array in the last argument.
Reply all
Reply to author
Forward
0 new messages