Criteria predicate in audience performance report

199 views
Skip to first unread message

GregT

unread,
Mar 7, 2014, 12:09:48 PM3/7/14
to adwor...@googlegroups.com
Hi,

Sometimes when pulling audience structure data for RLSA with the audience performance report, I want to get the data for just one audience for a campaign.  However, whenever I try to use a predicate that limits the audience, I get back no rows.  The predicates for status and campaign id work fine (returning what I would expect if I don't also add in the criteria predicate).  I know that audience criteria are a little odd, with the "boomuserlist::12345" format (https://groups.google.com/forum/#!topic/adwords-api/TwCw8z80I9w), so I'm not sure if I'm creating the predicate incorrectly, or it might just not be possible.

The predicates I've tried unsuccessfully are predicates where Criteria equals boomuserlist::12345 or Criteria equals 12345, where 12345 is the id of the audience.  This is with v201309 (Java library).

Should one of these predicates work, or is there a different predicate I should use, or is this just not possible?  Obviously, I can work around it by filtering by audience id as I parse the report, but I'd rather not if I don't have to.

Thanks in advance,
Greg


Josh Radcliff (AdWords API Team)

unread,
Mar 10, 2014, 11:08:30 AM3/10/14
to adwor...@googlegroups.com
Hi Greg,

I may have a solution on this one, but I'd like to test it out first on a campaign with some data.  Could you post one or more campaign IDs I could use to test?  When posting, please adhere to the forum rules regarding posting of confidential information.

Cheers,
Josh, AdWords API Team

GregT

unread,
Mar 10, 2014, 11:19:28 AM3/10/14
to adwor...@googlegroups.com
Hi, Josh.

An example campaign id is 101508056.

Thanks,
Greg

Josh Radcliff (AdWords API Team)

unread,
Mar 10, 2014, 12:43:38 PM3/10/14
to adwor...@googlegroups.com
Hi Greg,

I was able to select data for a specific audience and get back results for that campaign via the following report XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <ns2:selector>
    <ns2:fields>AdGroupId</ns2:fields>
    <ns2:fields>AdGroupName</ns2:fields>
    <ns2:fields>Criteria</ns2:fields>
    <ns2:fields>Ctr</ns2:fields>
    <ns2:fields>Date</ns2:fields>
    <ns2:predicates>
      <ns2:field>Criteria</ns2:field>
      <ns2:operator>EQUALS</ns2:operator>
      <ns2:values>boomuserlist::2709416</ns2:values>
    </ns2:predicates>
  </ns2:selector>
  <ns2:reportName>Audience performance report #1394469398903</ns2:reportName>
  <ns2:reportType>AUDIENCE_PERFORMANCE_REPORT</ns2:reportType>
  <ns2:dateRangeType>YESTERDAY</ns2:dateRangeType>
  <ns2:downloadFormat>CSV</ns2:downloadFormat>
  <ns2:includeZeroImpressions>false</ns2:includeZeroImpressions>
</reportDefinition>

I created the predicate using the Java client library as follows:

    Predicate predicate = new Predicate();
    predicate.setField("Criteria");
    predicate.setOperator(PredicateOperator.EQUALS);
    predicate.getValues().add("boomuserlist::2709416");

It sounds like you tried the exact same approach but it didn't work for you.  Could you compare your requests to mine and let me know if you see any differences?

Thanks,
Josh, AdWords API Team

GregT

unread,
Mar 10, 2014, 3:22:15 PM3/10/14
to adwor...@googlegroups.com
Hi, Josh.

Thanks for looking into this.  I ran my tests again today, and now it seems to be working.  I didn't think I changed anything since I originally tried, although it's definitely possible that I did.  Anyway, it is working as expected now, using the boomuserlist::12345 type of value in the predicate as I originally was trying.

Thanks again,
Greg

Ashish Pathak

unread,
May 12, 2014, 10:46:01 AM5/12/14
to adwor...@googlegroups.com
Hi,

I'm trying to set adgroup level bid modifier for remarketing list using code-

  operations.append({
      'xsi_type':'AdGroupBidModifierOperation',
      'operator': 'SET',
      'operand': {
        'xsi_type': 'AdGroupBidModifier',
          'adGroupId': ad_group_id,
          'criterion': {
              'xsi_type': 'CriterionUserList',
              'id': criterion_id
                        },
          'bidModifier': bid_modifier
                    }
                   })

when i tried criterion_id='boomuserlist::4817763'

getting error - 'Unmarshalling Error: For input string: "boomuserlist::4817763" '

also for criterion_id='4817763' getting error invalid_id.

I'm using python adword api lib,please help !

Thank you !

Regards,
Ashish Pathak

Josh Radcliff (AdWords API Team)

unread,
May 12, 2014, 2:24:21 PM5/12/14
to adwor...@googlegroups.com
Hi Ashish,

The AdGroupBidModifierService only supports Platform bid modifiers.  From the service documentation:

Service used to manage campaign criterion bid overrides at the ad group level. Currently supports platform (mobile) bid multiplier overrides only.

The add_ad_group_bid_modifier.py example illustrates how to set a platform bid modifier for an ad group.

Cheers,
Josh, AdWords API Team

Ashish Pathak

unread,
May 13, 2014, 12:56:55 AM5/13/14
to adwordsapia...@google.com, adwor...@googlegroups.com
Hi Josh,

Thanks for that !

Is there any other way to set adgroup or campaign bid modifier for remarketing list ?

Regards,
Ashish Pathak


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/pBNzWEuo5FE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

   
   Ashish Pathak
   Software Engineer

   Email: ash...@keywordio.com
   Website: www.keywordio.com
   Address: Keywordio AB, Sjöviksvägen 78, 117 57 Stockholm, Sweden

Josh Radcliff (AdWords API Team)

unread,
May 14, 2014, 6:03:53 PM5/14/14
to adwor...@googlegroups.com, adwordsapia...@google.com
Hi Ashish,

You could do this by setting up a BiddableAdGroupCriterion with the criterion set to your list and the various bidding options configured as needed.

Ashish Pathak

unread,
May 15, 2014, 1:18:35 AM5/15/14
to Josh Radcliff, adwor...@googlegroups.com
Thanks Josh, It's working!


--
Reply all
Reply to author
Forward
0 new messages