Wednesday, 21 September 2016

Re: Get rules of a REMARKETING UserList

Thank you, Peter!

What do you mean by "You will need to specify the correct UserList type"? In my call I selected both `DateSpecificListRule` and `ExpressionListRule` but no fields with rules appeared in the response. The 2 remarketing lists that I get are

object(UserList)[361]        public 'id' => string '411918617' (length=9)        public 'isReadOnly' => boolean true        public 'name' => string 'All visitors' (length=12)        public 'description' => string 'People who visited pages that contain your remarketing tags' (length=59)        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 true        public 'isEligibleForDisplay' => boolean true        public 'UserListType' => string 'UserList' (length=8)        private '_parameterMap' =>           array (size=1)            'UserList.Type' => string 'UserListType' (length=12)

and

object(UserList)[358]        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 fact that I don't get a list type in the `listType` field, I consider it a bug: https://groups.google.com/forum/#!topic/adwords-api/T8Q9pi2671w

I use the AdWordsUserListService->get() and the selector is

$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', 'DateSpecificListRule', 'ExpressionListRule', 'DateSpecificListEndDate', 'DateSpecificListStartDate');

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+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f3d8fdaa-dc36-41c5-a3bc-4e4e2b4ab204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment