how to solve PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY error

18 views
Skip to first unread message

NAM GIANG LE

unread,
Jul 22, 2019, 8:51:14 AM7/22/19
to AdWords API and Google Ads API Forum
Im trying using adwords api to add  CallFeedItem via CampaignExtensionSettingService, but it failed with a PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY error.
With same phone number, there's no problem when i use Dashboard or Adwords Editor.

I tried to find documentation about this rule but not found anything.
Can you help me to explain what i did wrong and how to fix it

Thank you.

here is my SOAP request and response. (i hide phone number)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   
<soapenv:Header>
       
<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0">
       
</ns1:RequestHeader>
   
</soapenv:Header>
   
<soapenv:Body>
       
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809">
           
<operations>
               
<operator>ADD</operator>
               
<operand>
                   
<campaignId>xxxxxxxxx</campaignId>
                   
<extensionType>CALL</extensionType>
                   
<extensionSetting>
                       
<extensions xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:CallFeedItem">
                           
<ns2:callPhoneNumber>120-566-xxxx</ns2:callPhoneNumber>
                           
<ns2:callCountryCode>JP</ns2:callCountryCode>
                       
</extensions>
                   
</extensionSetting>
               
</operand>
           
</operations>
       
</mutate>
   
</soapenv:Body>
</soapenv:Envelope>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[ExtensionSettingError.PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY @ operations[0].operand.extensionSetting.extensions[0].callPhoneNumber]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                    <message>[ExtensionSettingError.PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY @ operations[0].operand.extensionSetting.extensions[0].callPhoneNumber]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ExtensionSettingError">
                        <fieldPath>operations[0].operand.extensionSetting.extensions[0].callPhoneNumber</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>extensionSetting</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>extensions</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>callPhoneNumber</field>
                        </fieldPathElements>
                        <trigger/>
                        <errorString>ExtensionSettingError.PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY</errorString>
                        <ApiError.Type>ExtensionSettingError</ApiError.Type>
                        <reason>PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>






Google Ads API Forum Advisor Prod

unread,
Jul 23, 2019, 2:52:02 PM7/23/19
to gian...@irep.co.jp, adwor...@googlegroups.com
Hi Nam,

Just wondering if the phone number is of the right format? I couldn't get it to work with the Google Ads UI either. If you have this working in the UI, could you point me to a campaign ID by responding privately to this email?

Cheers
Anash

ref:_00D1U1174p._5001UEFzGM:ref
Reply all
Reply to author
Forward
0 new messages