membershipLifeSpan always set to 540 days

34 views
Skip to first unread message

Rémi CK

unread,
Nov 15, 2023, 1:18:45 AM11/15/23
to Google Ads API and AdWords API Forum
Hello,

When creating a new userList the membershipLifeSpan parameter is always ignored.
I tried using the PHP library and the REST API. For your information the PHP code was working for many years and we didn't change it recently.
I tried using API version 13, 14, and 15 but I always get the same result.


Request body:
{
    "operations": [
        {
            "create": {
                "name": "test api",
                "type": "RULE_BASED",
                "membershipLifeSpan": "42",
                "ruleBasedUserList": {
                    "flexibleRuleUserList": {
                        "inclusiveOperands": [
                            {
                                "rule": {
                                    "ruleItemGroups": [
                                        {
                                            "ruleItems": [
                                                {
                                                    "name": "url__",
                                                    "stringRuleItem": {
                                                        "operator": "CONTAINS",
                                                        "value": "https://www.google.com"
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            }
        }
    ]
}

Google Ads API Forum Advisor

unread,
Nov 15, 2023, 8:38:42 AM11/15/23
to re...@corekara.co.jp, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that while creating a new userList the membershipLifeSpan parameter is always ignored. Could you please confirm whether you can create a new userList the membershipLifeSpan in the UI? If yes, provide us the uncropped UI screenshot. 

In order to assist you further regarding the error, please provide us with the complete API logs (request and response with request-id and request header) generated at your end. If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qCPUj:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages