UserList listType is null

33 views
Skip to first unread message

kondiment test

unread,
Sep 22, 2016, 4:02:33 AM9/22/16
to AdWords API Forum
Hi,

When I get the UserLists from my account, some of them, namely the ones of type REMARKETING, have the field listType null. The docs say that this field should have one of the values enumerated there.

I attached a file with the audiences in my account. I'm most interested in the circled one, "My remarketing list with rules [ADW-made]".

The result I get from the API, when calling AdWordsUserListService->get(), contains

object(UserList)[361]
      public 'id' => string '414687168' (length=9)
      public 'isReadOnly' => boolean false
      public 'name' => string 'My remarketing list with rules [ADW-made]' (length=41)
      public 'description' => string '' (length=0)
      public 'status' => string 'OPEN' (length=4)
      public 'integrationCode' => null
      public 'accessReason' => string 'OWNED' (length=5)
      public 'accountUserListStatus' => string 'ACTIVE' (length=6)
      public 'membershipLifeSpan' => int 30
      public 'size' => int 0
      public 'sizeRange' => string 'LESS_THAN_FIVE_HUNDRED' (length=22)
      public 'sizeForSearch' => int 0
      public 'sizeRangeForSearch' => string 'LESS_THAN_FIVE_HUNDRED' (length=22)
      public 'listType' => null
      public 'isEligibleForSearch' => boolean false
      public 'isEligibleForDisplay' => boolean true
      public 'UserListType' => string 'UserList' (length=8)
      private '_parameterMap' => 
        array (size=1)
          'UserList.Type' => string 'UserListType' (length=12)

The selector I'm using is this:

$selector = new \Selector;
$selector->fields = array('Id', 'Name', 'Description', 'Status', 'IsReadOnly', 'AccessReason', 'AccountUserListStatus', 'MembershipLifeSpan', 'Size', 'SizeRange', 'SizeForSearch', 'SizeRangeForSearch', 'ListType', 'IsEligibleForSearch', 'IsEligibleForDisplay', 'SeedUserListId', 'SeedUserListName', 'SeedUserListDescription', 'SeedUserListStatus', 'SeedListSize');

As it can be seen, the 'ListType' selector field is there. I also tried with the following predicate added, as well, but I get the same fields for that audience.

$selector->predicates[] = new \Predicate('ListType', 'EQUALS', 'RULE_BASED');

For the audience "All visitors" I also get a null `listType` field.

Thank you.
adwords.png
Reply all
Reply to author
Forward
0 new messages