Sitelinks Feed Limit (EntityCountLimitExceeded.ACCOUNT_LIMIT)

117 views
Skip to first unread message

Danny

unread,
Sep 30, 2014, 11:28:29 AM9/30/14
to adwor...@googlegroups.com
Hi

I am relatively new to the AdWords API, having been using it for the past 2 months or so. I am using v201406 and the PHP client library. 

Everything has been working well except for a new update I just deployed that would automatically create unique sitelinks for each campaign. I integrated this feature by following the sample code in the library examples, and all worked fine while testing. Once live however, I seem to have hit an account limit of 20 feeds per account which is problematic since I have 73 campaigns and was trying to allocate a feed to each campaign.

I found this link here which seems to deal with a similar issue, but I found the answer to be rather vague: https://groups.google.com/forum/#!searchin/adwords-api/EntityCountLimitExceeded.ACCOUNT_LIMIT$20sitelinks/adwords-api/rrmQ3PgongE/2fOsxX6D8V0J 

I specifically need the correct sitelinks to link to the relevant campaigns, but I do not need to go down to adgroup level. Is there a better way of doing this than following the php client example? Please could you kindly assist.

Thank you

Anash P. Oommen (AdWords API Team)

unread,
Oct 1, 2014, 2:07:33 PM10/1/14
to adwor...@googlegroups.com
Hi Danny,

You should be using a single feed, and associating the right set of FeedItems with the campaigns using a MatchingFunction. The usual practice is to keep one feed per extension type (e.g. one for sitelinks, one for call extensions, etc.). https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/AddSitelinks.php#L214 shows how to associate individual FeedItems with a campaign.

If you have exceeded the 20 feed limit, then you can delete the feeds using FeedItem.mutate, REMOVE operator.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Danny

unread,
Oct 2, 2014, 10:28:46 AM10/2/14
to adwor...@googlegroups.com
Thanks Anash, managed to get it working :)

Thanks

Danny

Александр Бунке

unread,
Jul 28, 2015, 11:43:42 AM7/28/15
to AdWords API Forum, adwordsapia...@google.com
Hello, I tried to use 1 feed to create custom sitelinks for AdGroups, but I cant understand how to use MatchingFunction to associate some Feed Items to AdGroup...

From Example:

// There we creating list of feed items

 foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) {
    $constantOperand = new ConstantOperand();
    $constantOperand->longValue = $feedItemId;
    $constantOperand->type = 'LONG';
    $operands[] = $constantOperand;
  }
  $feedItemFunction->rhsOperand = $operands;

// There we creating Operand with this list of items

  $feedItemFunctionOperand->value = $feedItemFunction;

// There we creating function with this Operand
  $combinedFunction->lhsOperand = array($feedItemFunctionOperand,
      $platformFunctionOperand);

// There we linking Feed with Campaign

  $campaignFeed = new CampaignFeed();
  $campaignFeed->feedId = $sitelinksData['sitelinksFeedId'];
  $campaignFeed->campaignId = $campaignId;
  $campaignFeed->matchingFunction = $combinedFunction;
  // Specifying placeholder types on the CampaignFeed allows the same feed
  // to be used for different placeholders in different Campaigns.
  $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS);


Am I right in my comments? Can i use same way to link feed Items with AdGroup?

середа, 1 жовтня 2014 р. 21:07:33 UTC+3 користувач Anash P. Oommen (AdWords API Team) написав:

Александр Бунке

unread,
Jul 28, 2015, 1:02:57 PM7/28/15
to AdWords API Forum, adwordsapia...@google.com, al...@bunke.com.ua
When I try to add some additional sitelinks (after Mapping) to feed it gets error: [EntityAccessDenied.WRITE_ACCESS_DENIED @ operations[0].operand.attributeValues, EntityAccessDenied.WRITE_ACCESS_DENIED @ operations[1].operand.attributeValues]

Feed ID 28653591
Why it happens?

Thaks

вівторок, 28 липня 2015 р. 18:43:42 UTC+3 користувач Александр Бунке написав:

Anash P. Oommen (AdWords API Team)

unread,
Jul 29, 2015, 10:59:34 AM7/29/15
to AdWords API Forum, al...@bunke.com.ua, al...@bunke.com.ua
Hi,

My guess is that one of the attributes you are trying to update is the Link URL. As part of Upgraded URL migration, these fields became readonly on July 1. 2015. See http://googleadsdeveloper.blogspot.com/2015/05/reminder-adwords-destination-urls-will.html for details.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Александр Бунке

unread,
Jul 29, 2015, 11:28:58 AM7/29/15
to AdWords API Forum, adwordsapia...@google.com
Hello, thanks!

New API required new type of filed:   

$urlAttribute->type = "URL_LIST";

and

define("SITELINKS_URL_FIELD_ID", 5);

After that app works right!

Thanks!

середа, 29 липня 2015 р. 17:59:34 UTC+3 користувач Anash P. Oommen (AdWords API Team) написав:
Reply all
Reply to author
Forward
0 new messages