How to remove FinalUrls on the Keyword level?

67 views
Skip to first unread message

Nellle Rickchards

unread,
Dec 3, 2018, 5:53:49 PM12/3/18
to AdWords API and Google Ads API Forum
Hello,

I exadently uploaded our root domain as the finalURL for multiple keywords. I fix this error by removeing the finalUrl in on the keyword level so that we use the text ads final url. I tried passing "NULL" as the keyword final url but it returns and error for being to short. 

I can't seem to find any information  on how to remove the finalURL. 

Any help would be appreciated! 

Thanks.

Peter Oliquino (AdWords API Team)

unread,
Dec 3, 2018, 6:47:46 PM12/3/18
to AdWords API and Google Ads API Forum
Hi Nellle,

We currently do not have a direct example, however, using the Java client library, I have tried the following code snippet (setting its final URL as a new instance of a UrlList) to remove the current values of my test account's finalUrl.

UrlList urlList = new UrlList();
biddableAdGroupCriterion.setFinalUrls(urlList);

Let me know if this helps.

Best regards,
Peter
AdWords API Team

Nellle Rickchards

unread,
Dec 3, 2018, 8:41:43 PM12/3/18
to AdWords API and Google Ads API Forum
Thanks!

I'm writing this in Python. So I'm a little confused.

Here is my code:
    criterion_operations = [
        {
            'xsi_type': 'AdGroupCriterionOperation',
            'operand': {
                'xsi_type': 'BiddableAdGroupCriterion',
                'adGroupId': i[0],
                'criterion': {
                        'id': i[1],
                },
                'userStatus': i[3],
                'finalUrls': {
                    'urls': i[5]
                },
            },
            'operator': 'SET'
        }
        for i in update_keywords]

Peter Oliquino (AdWords API Team)

unread,
Dec 4, 2018, 11:57:16 AM12/4/18
to AdWords API and Google Ads API Forum
Hi Nellle,

My apologies as I am unable to provide an example using Python, however, I have attached the SOAP request logs generated from the code I've provided you in my previous email which you may use as reference.

Let me know if this helps.

Best regards,
Peter
AdWords API Team

Peter Oliquino (AdWords API Team)

unread,
Dec 4, 2018, 12:47:23 PM12/4/18
to adwor...@googlegroups.com
Hi Nellle,

My apologies, attached now to this response is the sample SOAP request log.

Best regards,
Peter
AdWords API Team
soap_request.txt
Reply all
Reply to author
Forward
0 new messages