Membership Life Span Changing without input

404 views
Skip to first unread message

Steven Alsheimer

unread,
May 1, 2023, 1:28:33 PM5/1/23
to Google Ads API and AdWords API Forum
Hi All, 

I use the Google Ads API to upload a user list using the 'OfflineUserDataJobService' and then I change the membership lifespan to 540 days using 'UserListService' and 'UserListOperation', more of the code is below. 

After the initial run on my Google Ads Test Account the user/audience list uploads perfectly fine. Including the correct membership lifespan (540 Days). After about 1-2 Days the Audience List is closed and the membership lifespan reads (1 Day).

Is this happening because it is a test account? Or is there another issue altogether?

Thanks!

Function for changing User list membership lifespan:
def update_user_list_membership_lifespan(client, customer_id, list_id, mem_life_span, status, app_id=None):
    """Creates a User List using the name provided.
    Args:
      client: The Google Ads client instance.
      customer_id: The customer ID for which to add the user list.
      list_name: The name of the user list to search.
      list_type: The type of customer list (based on CustomerMatchUploadKeyType).
      app_id: App ID required only for mobile advertising lists.
    Returns:
      The User List resource name.
    """
    print(f'The user list {list_id} will have mem_life_spn updated.')
    user_list_service = client.get_service('UserListService')
    user_list_operation = client.get_type('UserListOperation')

    # Creates the new user list.
    user_list = user_list_operation.update
   
    user_list.resource_name = f"customers/{customer_id}/userLists/{list_id}"

    user_list.membership_life_span = mem_life_span
   
    user_list.membership_status = status
   
    client.copy_from(
        user_list_operation.update_mask,
        protobuf_helpers.field_mask(None, user_list._pb),
    )

    user_list_response = user_list_service.mutate_user_lists(
        customer_id=customer_id, operations=[user_list_operation]
    )
    user_list_resource_name = user_list_response.results[0].resource_name
    print(
        f'User list with resource name "{user_list_resource_name}" was updated.')
    return user_list_resource_name

Google Ads API Forum Advisor

unread,
May 3, 2023, 8:39:26 AM5/3/23
to pilots.kind...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to Google Ads API Support.

Can you please provide us with the complete request and response logs with request ID generated on your end when you performed your API requests and an uncropped screenshot of the UI where you are observing “Audience List is closed and the membership lifespan reads (1 Day).” in comparison to the successful data, so we can investigate further?

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2l91pX:ref

Steven Alsheimer

unread,
May 3, 2023, 1:18:08 PM5/3/23
to Google Ads API and AdWords API Forum
Even if I input a manual list on the test account for only  30 day membership lifespan the status changes to CLOSED (1 Day) after a day

So even without the API this is happening. Is this just a Google Ads Test Account Limitation?

Thanks

Google Ads API Forum Advisor

unread,
May 4, 2023, 2:24:13 AM5/4/23
to pilots.kind...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for getting back to us.

According to the Limitations for Test accounts, Some features cannot be tested with test accounts. This includes bid simulations, conversion uploads, and billing. Other features, including recommendations, have limited functionality within test accounts because test accounts do not generate serving data.

You are uploading user list data to your test account using the OfflineUserDataJobService which is one of the services in uploading Customer Match data. Please note that one requirement to use Customer Match according to this article is having “A good payment history”. Since test accounts have features that cannot be tested, such as billing, this requirement is not met and thus a test account is not eligible for this service.

Additionally, under limitations for Audience Management, it states that “User lists are not supported in test accounts and are automatically closed upon creation

I hope this information is helpful to you.

Regards,

Steven Alsheimer

unread,
May 11, 2023, 9:41:53 AM5/11/23
to Google Ads API and AdWords API Forum
Yes this makes sense, thanks for the update

Thanks

Google Ads API Forum Advisor

unread,
May 11, 2023, 1:57:39 PM5/11/23
to pilots.kind...@gmail.com, adwor...@googlegroups.com

Hi Steven,

Thanks for getting back with us.

Thank you for informing us that this clarifies your concerns. Don't hesitate to contact us if you have any more questions related to Google Ads API

Regards,

Reply all
Reply to author
Forward
0 new messages