Upgraded sitelink feeds final url

23 views
Skip to first unread message

Anil

unread,
Apr 29, 2016, 9:33:07 AM4/29/16
to AdWords API Forum
Hello,

According to https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks there are only 7 placeholders available in Sitelink Feed. 
API Documentation says Final URL should be linked with placeholder 5 and it seems correct when we check for our clients.

But we have one client where Final url comes under Placeholder 8. While changing final url through through API we have applied Final url with placeholder 5 still next time it comes under placeholder 8.

Is there any issues?

Thanks

Janak Prajapati

unread,
Apr 29, 2016, 9:57:41 AM4/29/16
to AdWords API Forum
Additional details to the same query -

This is the API response of one of the Sitelink feed item, we are receiving,

object(FeedItem)#4446 (14) {
  ["feedId"]=>
  string(8) "10270XXX"
  ["feedItemId"]=>
  string(9) "124967XXX"
  ["status"]=>
  string(7) "ENABLED"
  ["startTime"]=>
  NULL
  ["endTime"]=>
  NULL
  ["attributeValues"]=>
  array(5) {
    [0]=>
    object(FeedItemAttributeValue)#4438 (9) {
      ["feedAttributeId"]=>
      string(1) "1"
      ["integerValue"]=>
      NULL
      ["doubleValue"]=>
      NULL
      ["booleanValue"]=>
      NULL
      ["stringValue"]=>
      string(25) "What's New TEST"
      ["integerValues"]=>
      NULL
      ["doubleValues"]=>
      NULL
      ["booleanValues"]=>
      NULL
      ["stringValues"]=>
      NULL
    }
    [1]=>
    object(FeedItemAttributeValue)#4429 (9) {
      ["feedAttributeId"]=>
      string(1) "3"
      ["integerValue"]=>
      NULL
      ["doubleValue"]=>
      NULL
      ["booleanValue"]=>
      NULL
      ["stringValue"]=>
      string(35) "Wholesale Prices Boots"
      ["integerValues"]=>
      NULL
      ["doubleValues"]=>
      NULL
      ["booleanValues"]=>
      NULL
      ["stringValues"]=>
      NULL
    }
    [2]=>
    object(FeedItemAttributeValue)#4432 (9) {
      ["feedAttributeId"]=>
      string(1) "4"
      ["integerValue"]=>
      NULL
      ["doubleValue"]=>
      NULL
      ["booleanValue"]=>
      NULL
      ["stringValue"]=>
      string(31) "Buy all Boots TEST TEXT"
      ["integerValues"]=>
      NULL
      ["doubleValues"]=>
      NULL
      ["booleanValues"]=>
      NULL
      ["stringValues"]=>
      NULL
    }
    [3]=>
    object(FeedItemAttributeValue)#4416 (9) {
      ["feedAttributeId"]=>
      string(1) "7"
      ["integerValue"]=>
      NULL
      ["doubleValue"]=>
      NULL
      ["booleanValue"]=>
      NULL
      ["stringValue"]=>
      string(118) "http://secure.mydomain.com/tracking/track.php?c=test&d=120&e=test%40gmail.com&u={lpurl}"
      ["integerValues"]=>
      NULL
      ["doubleValues"]=>
      NULL
      ["booleanValues"]=>
      NULL
      ["stringValues"]=>
      NULL
    }
    [4]=>
    object(FeedItemAttributeValue)#4417 (9) {
      ["feedAttributeId"]=>
      string(1) "8"
      ["integerValue"]=>
      NULL
      ["doubleValue"]=>
      NULL
      ["booleanValue"]=>
      NULL
      ["stringValue"]=>
      NULL
      ["integerValues"]=>
      NULL
      ["doubleValues"]=>
      NULL
      ["booleanValues"]=>
      NULL
      ["stringValues"]=>
      array(1) {
        [0]=>
        string(148) "http://www.mydomain.com/collections/Boot?utm_source=google&utm_medium=ppc&utm_content={_sitelink}&utm_campaign={_mycampaign}"
      }
    }
  }
  ["policyData"]=>
  NULL
  ["devicePreference"]=>
  NULL
  ["scheduling"]=>
  NULL
  ["campaignTargeting"]=>
  NULL
  ["adGroupTargeting"]=>
  NULL
  ["keywordTargeting"]=>
  NULL
  ["geoTargeting"]=>
  NULL
  ["urlCustomParameters"]=>
  NULL

Josh Radcliff (AdWords API Team)

unread,
Apr 29, 2016, 2:37:58 PM4/29/16
to AdWords API Forum
Hi,

An important distinction with feeds is between two fields on AttributeFieldMapping:
  1. fieldId - The placeholder field ID that maps to the values on the Feed Placeholders page. This field ID does not appear on individual FeedItemAttributeValues.
  2. feedAttributeId - The ID of the field as it will appear on FeedItemAttributeValues, e.g., on individual FeedItems. This ID is automatically generated by AdWords, and may not be the same as the fieldId above.
So when you are looking at an individual FeedItem, you should not assume that the feedAttributeId will be one of the values on the Feed Placeholders page. In order to determine which placeholder field ID (fieldId) corresponds to a feedAttributeId for a given Feed, you need to look at the FeedMapping.attributeFieldMappings for the feedId and placeholderType.

Hope that clears things up.

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