Problems with finalUrls in SiteLinks

96 views
Skip to first unread message

kviz...@blondinka.ru

unread,
Jun 29, 2015, 8:42:03 AM6/29/15
to adwor...@googlegroups.com
Hello.

I can not create final urls for siteLinksю What am i doing wrong?

Requested xml:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201502">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>5211710030</ns1:clientCustomerId>
<ns1:developerToken>***</ns1:developerToken>
<ns1:userAgent>Aori-ru-PHP-adwords-lib (AwApi-PHP/6.0.0, Common-PHP/6.0.0, PHP/5.5.9-1ubuntu4.9)
</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
<ns1:stringValue>a1</ns1:stringValue>
</ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
<ns1:stringValues>http://qqq.ru/a</ns1:stringValues>
</ns1:attributeValues>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
<ns1:stringValue>c1</ns1:stringValue>
</ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
<ns1:stringValues>http://qqq.ru/c</ns1:stringValues>
</ns1:attributeValues>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
<ns1:stringValue>b1</ns1:stringValue>
</ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
<ns1:stringValues>http://qqq.ru/b</ns1:stringValues>
</ns1:attributeValues>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502">
<requestId>000519570e2931190ac4fec3fe0034bb</requestId>
<serviceName>FeedItemService</serviceName>
<methodName>mutate</methodName>
<operations>0</operations>
<responseTime>107</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201502">
<rval>
<ListReturnValue.Type>FeedItemReturnValue</ListReturnValue.Type>
<value>
<feedId>22277910</feedId>
<feedItemId>1675246053</feedItemId>
<status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
<stringValue>a1</stringValue>
</attributeValues>
</value>
<value>
<feedId>22277910</feedId>
<feedItemId>1675246056</feedItemId>
<status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
<stringValue>c1</stringValue>
</attributeValues>
</value>
<value>
<feedId>22277910</feedId>
<feedItemId>1675246059</feedItemId>
<status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
<stringValue>b1</stringValue>
</attributeValues>
</value>
</rval>
</mutateResponse>
</soap:Body>
</soap:Envelope>

Anthony Madrigal

unread,
Jun 29, 2015, 12:34:04 PM6/29/15
to adwor...@googlegroups.com, kviz...@blondinka.ru
Hello,

After looking into your account, I noticed that your sitelink URLs have been disapproved because they run into 404 errors. This may be the reason you cannot successfully add them.

Regards,
Anthony
AdWords API Team

kviz...@blondinka.ru

unread,
Jun 30, 2015, 7:27:58 AM6/30/15
to adwor...@googlegroups.com, kviz...@blondinka.ru
Fix urls, but not work (


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201502">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>5211710030</ns1:clientCustomerId>
<ns1:developerToken>***</ns1:developerToken>
<ns1:userAgent>Aori-ru-PHP-adwords-lib (AwApi-PHP/6.0.0, Common-PHP/6.0.0, PHP/5.5.9-1ubuntu4.9)
</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
                        <ns1:stringValue>a12</ns1:stringValue>
                    </ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
                        <ns1:stringValues>http://aori.ru/partners/</ns1:stringValues>
                    </ns1:attributeValues>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
                        <ns1:stringValue>c12</ns1:stringValue>
                    </ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
                        <ns1:stringValues>http://aori.ru/mainpage1/about/</ns1:stringValues>
                    </ns1:attributeValues>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:feedId>22277910</ns1:feedId>
<ns1:attributeValues>
<ns1:feedAttributeId>1</ns1:feedAttributeId>
                        <ns1:stringValue>b12</ns1:stringValue>
                    </ns1:attributeValues>
<ns1:attributeValues>
<ns1:feedAttributeId>5</ns1:feedAttributeId>
                        <ns1:stringValues>http://aori.ru/main/howmuch/</ns1:stringValues>
                    </ns1:attributeValues>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502">
            <requestId>000519b98666b3790ac43547bd00cc71</requestId>
            <serviceName>FeedItemService</serviceName>
<methodName>mutate</methodName>
<operations>0</operations>
            <responseTime>109</responseTime>
        </ResponseHeader>
</soap:Header>
<soap:Body>
<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201502">
<rval>
<ListReturnValue.Type>FeedItemReturnValue</ListReturnValue.Type>
<value>
<feedId>22277910</feedId>
                    <feedItemId>1701952196</feedItemId>
                    <status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
                        <stringValue>a12</stringValue>
                    </attributeValues>
</value>
<value>
<feedId>22277910</feedId>
                    <feedItemId>1701952199</feedItemId>
                    <status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
                        <stringValue>c12</stringValue>
                    </attributeValues>
</value>
<value>
<feedId>22277910</feedId>
                    <feedItemId>1701952202</feedItemId>
                    <status>ENABLED</status>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
                        <stringValue>b12</stringValue>
                    </attributeValues>
</value>
</rval>
</mutateResponse>
</soap:Body>
</soap:Envelope>

Anthony Madrigal

unread,
Jun 30, 2015, 3:14:55 PM6/30/15
to adwor...@googlegroups.com, kviz...@blondinka.ru
Hello,

Have you tried using one of the ExtensionSettingServices such as the CampaignExtensionSettingService? The services allow you to create sitelinks without having to use a feed first. Our client libraries provide an example of how to do so. 

if you want use it using feeds, then you will need to fix a few things. I noticed that:
  • Your feedAttributeId 5 refers to SitelinkTrackingUrl, not SitelinkFinalUrls. TrackingUrlTemplate is of type STRING, so you would need to set stringValue not stringValues. 
  • The feedAttributeId for SitelinkFinalUrls is mapped to 3. You will need to just set the stringValues to 3 instead of 5. 
So essentially, you could do one of two things
  • Use an ExtensionSettingService
  • Use feedAttributeId = 3 for the finalUrl

Hope this helps!
Reply all
Reply to author
Forward
0 new messages