Unlimited membership lifespan for create user list

120 views
Skip to first unread message

Yingdong Li

unread,
Oct 22, 2024, 8:24:16 PM10/22/24
to Google Ads API and AdWords API Forum
We're getting error  'Too high., at operations[0].create.membership_life_span when trying to create a user list with 10000 as membership lifespan to make it unlimited. Sample code:
val createUserList =
UserListOperation
.newBuilder()
.setCreate {
UserList
.newBuilder()
.setName(
"name")
.setDescription("description")
.setMembershipStatus(UserListMembershipStatus.OPEN)
.setMembershipLifeSpan(10000L)
.setCrmBasedUserList {
CrmBasedUserListInfo
.newBuilder()
.setUploadKeyType(customerMatchUploadKeyType)
.setAppId(appId.value.getOrElse(""))
.build()
}
}
.build()

val mutateUserListsResponse =
userListServiceClient.mutateUserLists {
MutateUserListsRequest
.newBuilder()
.setCustomerId(customerId)
.addOperations(createUserList)
.setPartialFailure(true)
.build
}
this used to work until recently. We tried with a 500 membership lifespan and it succeeded. We're wondering if there are any changes being introduced to Google Ads API that are related to this? We're on Google Ads API v17.

Chris Smith

unread,
Oct 28, 2024, 7:50:33 PM10/28/24
to Google Ads API and AdWords API Forum
We saw this error last week too for several days, then it went back to working without our changing anything. We heard from a Google rep "that a change is currently rolling out that removes support for unlimited duration, and the maximum will be 540 days. It's already been changed in serving (unlimited duration is treated as 540 days) but the UI and API are now being updated to match."

Hoping that there is some announcement about what to expect and when this change may be formally made!

Reply all
Reply to author
Forward
0 new messages