Product Partition Tree Size and Limit

86 views
Skip to first unread message

venkata munnangi

unread,
Oct 31, 2017, 5:16:30 PM10/31/17
to AdWords API Forum
Hello,

I have been using this code as a template for creating a product partition tree for a given ad-group.

Context: I have a list of offerIds that I use to essentially remove ProductPartitions with that specific offerId. I might have multiple adgroups, but there will be only one copy of that offerId in entire series of ad groups.

Questions
  1. Is there a limit of Product Partitions that a single Ad Group can have? if yes, How can I find out whether an adgroup reached its limit?
  2. Is it Possible to find out how many product partitions exist in a single AdGroup?

venkata munnangi

unread,
Nov 1, 2017, 12:57:49 AM11/1/17
to AdWords API Forum
After self-testing and research.

1. Yes the limit is 20,000 per ad-group. It throws an ApiException after you try to add more. 
2. No straightforward. If it is a single depth you can do a getChildren. But, if the depth is more than 1, then you have to traverse ProductPartitionTree.

Shwetha Vastrad (AdWords API Team)

unread,
Nov 1, 2017, 10:28:24 AM11/1/17
to AdWords API Forum
Hi Venkata, 

Yes, there can be a maximum of 20,000 ad group targeting items per ad group (such as keywords, placements, and audience lists). You can more details about AdWords account limits in this guide. To get the total number of ENABLED and PAUSED ProductPartitions in an AdGroup, you could consider using the following query in an AdGroupCriterionService.query() request and get the TotalNumEntries

SELECT Id, PartitionType WHERE AdGroupId = your_AdGroupId AND CriteriaType = PRODUCT_PARTITION AND Status != REMOVED ORDER BY Id LIMIT 0, 100

Regards,
Shwetha, AdWords API Team.

venkata munnangi

unread,
Nov 1, 2017, 1:42:19 PM11/1/17
to adwordsapiad...@google.com, AdWords API Forum
if I have a list of productPartition names(offerIds), then out of curiousity can I use that query to retrieve that list?

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/Ndm9gtpxdk8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/82797377-7831-4e16-b1e3-9bc3bd7e5c7f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages