MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE

273 views
Skip to first unread message

Milo Hou

unread,
Aug 26, 2015, 11:08:03 AM8/26/15
to AdWords API Forum
I'm trying to create a new campaign feed. It has historically worked but recently began to fail. Here is the soap request and response.

<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/v201502" soapenv:mustUnderstand="0">

            <ns1:clientCustomerId>######</ns1:clientCustomerId>

            <ns1:developerToken>######</ns1:developerToken>

            <ns1:userAgent>######## (AwApi-Java, AdWords-Axis/1.39.0, Common-Java/1.39.0, Axis/1.4, Java/1.8.0_45, jars)</ns1:userAgent>

            <ns1:validateOnly>false</ns1:validateOnly>

            <ns1:partialFailure>false</ns1:partialFailure>

        </ns1:RequestHeader>

    </soapenv:Header>

    <soapenv:Body>

        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201502">

            <operations>

                <operator>ADD</operator>

                <operand>

                    <feedId>29142296</feedId>

                    <campaignId>329297211</campaignId>

                    <matchingFunction>

                        <operator>IN</operator>

                        <lhsOperand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns2:RequestContextOperand">

                            <ns2:contextType>FEED_ITEM_ID</ns2:contextType>

                        </lhsOperand>

                        <rhsOperand xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns3:ConstantOperand">

                            <ns3:type>LONG</ns3:type>

                            <ns3:longValue>2007668790</ns3:longValue>

                        </rhsOperand>

                        <rhsOperand xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns4:ConstantOperand">

                            <ns4:type>LONG</ns4:type>

                            <ns4:longValue>2005456913</ns4:longValue>

                        </rhsOperand>

                        <rhsOperand xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns5:ConstantOperand">

                            <ns5:type>LONG</ns5:type>

                            <ns5:longValue>2005454435</ns5:longValue>

                        </rhsOperand>

                        <rhsOperand xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns6:ConstantOperand">

                            <ns6:type>LONG</ns6:type>

                            <ns6:longValue>2005449634</ns6:longValue>

                        </rhsOperand>

                        <rhsOperand xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns7:ConstantOperand">

                            <ns7:type>LONG</ns7:type>

                            <ns7:longValue>2005449637</ns7:longValue>

                        </rhsOperand>

                        <rhsOperand xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns8:ConstantOperand">

                            <ns8:type>LONG</ns8:type>

                            <ns8:longValue>2005454441</ns8:longValue>

                        </rhsOperand>

                    </matchingFunction>

                    <placeholderTypes>1</placeholderTypes>

                </operand>

            </operations>

        </mutate>

    </soapenv:Body>

</soapenv:Envelope>



<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

    <soap:Header>

        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502">

            <requestId>00051e382723e5390a8160572d0105d1</requestId>

            <serviceName>CampaignFeedService</serviceName>

            <methodName>mutate</methodName>

            <operations>0</operations>

            <responseTime>1510</responseTime>

        </ResponseHeader>

    </soap:Header>

    <soap:Body>

        <soap:Fault>

            <faultcode>soap:Server</faultcode>

            <faultstring>[CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE @ operations[0].operand.placeholderTypes; trigger:'Invalid ids: 1']</faultstring>

            <detail>

                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201502">

                    <message>[CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE @ operations[0].operand.placeholderTypes; trigger:'Invalid ids: 1']</message>

                    <ApplicationException.Type>ApiException</ApplicationException.Type>

                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CampaignFeedError">

                        <fieldPath>operations[0].operand.placeholderTypes</fieldPath>

                        <trigger>Invalid ids: 1</trigger>

                        <errorString>CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE</errorString>

                        <ApiError.Type>CampaignFeedError</ApiError.Type>

                        <reason>MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE</reason>

                    </errors>

                </ApiExceptionFault>

            </detail>

        </soap:Fault>

    </soap:Body>

</soap:Envelope>



Josh Radcliff (AdWords API Team)

unread,
Aug 26, 2015, 3:20:04 PM8/26/15
to AdWords API Forum
Hi,

The error below indicates that you did not yet create a FeedMapping with placeholderType 1 (sitelinks) for your feed. Please create that FeedMapping and then try creating the CampaignFeed again.

Thanks,
Josh, AdWords API Team

Milo Hou

unread,
Aug 26, 2015, 4:10:28 PM8/26/15
to AdWords API Forum
Thanks Josh.
How do I check in the future if a feedmapping exists?

Josh Radcliff (AdWords API Team)

unread,
Aug 27, 2015, 8:54:19 AM8/27/15
to AdWords API Forum
Hi,

You can check for the FeedMapping by issuing a FeedMappingService.get or FeedMappingService.query call with the following predicates:
Cheers,
Josh, AdWords API Team
Message has been deleted

Lajpat Bishnoi

unread,
Aug 30, 2015, 3:05:07 AM8/30/15
to AdWords API Forum
Hi Josh Radcliff ,

 While mapping the feedItems with campaign I am getting following error.
CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE

SOAP Request:

<?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201502" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>#####</ns1:clientCustomerId>
            <ns1:developerToken>#####</ns1:developerToken>
            <ns1:userAgent>sokrati.api (AwApi-Java, AdWords-Axis/1.38.0, Common-Java/1.38.0, Axis/1.4, Java/1.6.0_21, jars)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <feedId>29236701</feedId>
                    <campaignId>311104960</campaignId>
                    <matchingFunction>
                        <operator>IN</operator>
                        <lhsOperand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns2:RequestContextOperand">
                            <ns2:contextType>FEED_ITEM_ID</ns2:contextType>
                        </lhsOperand>
                        <rhsOperand xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201502" xsi:type="ns3:ConstantOperand">
                            <ns3:type>LONG</ns3:type>
                            <ns3:longValue>2012165338</ns3:longValue>
                        </rhsOperand>
                    </matchingFunction>
                    <placeholderTypes>2</placeholderTypes>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


SOAP RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502">
            <requestId>00051e497c6bd9900a814cd15d036d69</requestId>

            <serviceName>CampaignFeedService</serviceName>
            <methodName>mutate</methodName>
            <operations>0</operations>
            <responseTime>43</responseTime>

        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE @ operations[0].operand.placeholderTypes; trigger:'Invalid ids: 2']</faultstring>

            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201502">
                    <message>[CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE @ operations[0].operand.placeholderTypes; trigger:'Invalid ids: 2']</message>

                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CampaignFeedError">
                        <fieldPath>operations[0].operand.placeholderTypes</fieldPath>
                        <trigger>Invalid ids: 2</trigger>

                        <errorString>CampaignFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE</errorString>
                        <ApiError.Type>CampaignFeedError</ApiError.Type>
                        <reason>MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>


At my outset i have retried the request at an interval of 5 minutes but no success.


  Thank you.
--... ...--
Regards,
Lajpat Bishnoi.
Software developer@Sokrati

Josh Radcliff (AdWords API Team)

unread,
Aug 31, 2015, 8:26:18 AM8/31/15
to AdWords API Forum
Hi Lajpat,

Please see my previous post, which explains the cause of this error and how to resolve it.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages