Product Targets available in the API

285 views
Skip to first unread message

SuntekSolutions

unread,
Dec 9, 2010, 2:48:53 AM12/9/10
to AdWords API Forum
Hi, Googs! I have over 4000 adgroups accoss my campaigns. Each adgroup
represents a specific product group (with different sizes and
flavors). I have added the group code for those items to my google
base data feed (adwords_grouping). Now I just need the ability to tag
each adgroup in adwords with the product target for that grouping.
Currently I am having to click on each adgroup and manually use the
adwords interface to assign the group number with the adwords_grouping
target attribute to the adgroup.

Is there a way and if not will there be a way to assign a product
target or auto target to a adgroup via the adwords API? Looking
through the API I see there is productextension class derived from
adextension class, but its not used anywhere in the examples provided.
When I use the override service an error is returned that says only
location extensions can override campaign extensions. But really
extensions isnt what we need, we are looking to activate a productAd
via auto targets or product targets via the API. Is the any hope? Or
keep working manually through the adwords interface?

AdWords API Advisor

unread,
Dec 10, 2010, 6:07:50 PM12/10/10
to AdWords API Forum
Hi,

You can use Product criteria to add this product targeting information
to an ad group:

http://code.google.com/apis/adwords/docs/reference/latest/AdGroupCriterionService.Product.html

We don't have any example that show how to create product criteria,
but it's very similar to adding other types of criteria:

http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201008/AddAdGroupCriteria.java?r=186

Best,
- Eric Koleda, AdWords API Team

SuntekSolutions

unread,
Dec 10, 2010, 7:47:47 PM12/10/10
to AdWords API Forum
Hi Eric,

Thanks for the help. I tried this but when I call the service I get a
Adgroupcriterionerror of: AdGroupCriterionError.CONCRETE_TYPE_REQUIRED

When I looked this up it says that I need a type of keyword or
placement. But I am not doing either of these types when doing
product. Here is my code:



Dim pc As New ProductCondition()
pc.operand = New ProductConditionOperand()
pc.operand.operand = "adwords_grouping"
pc.argument = curProduct.ProductGroupID


Dim pro As New Product
pro.conditions = New ProductCondition() {pc}

Dim pCriterion As New AdGroupCriterion()
pCriterion.adGroupId = gID
pCriterion.criterion = pro


Dim k_service As AdGroupCriterionService =
CType(User.GetService(Google.Api.Ads.AdWords.Lib.AdWordsService.v201008.AdGroupCriterionService),
AdGroupCriterionService)
Dim a_operation As New AdGroupCriterionOperation
a_operation.operatorSpecified = True
a_operation.operator = [Operator].ADD
a_operation.operand = pCriterion

On Dec 10, 3:07 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi,
>
> You can use Product criteria to add this product targeting information
> to an ad group:
>
>  http://code.google.com/apis/adwords/docs/reference/latest/AdGroupCrit...
>
> We don't have any example that show how to create product criteria,
> but it's very similar to adding other types of criteria:
>
>  http://code.google.com/p/google-api-adwords-java/source/browse/trunk/...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Dec 9, 2:48 am, SuntekSolutions <svid...@gmail.com> wrote:
>
>
>
> > Hi, Googs! I have over 4000 adgroups accoss my campaigns. Each adgroup
> > represents a specific product group (with different sizes and
> > flavors). I have added the group code for those items to my google
> > base data feed (adwords_grouping). Now I just need the ability to tag
> > each adgroup in adwords with the product target for that grouping.
> > Currently I am having to click on each adgroup and manually use the
> > adwords interface to assign the group number with the adwords_grouping
> > target attribute to the adgroup.
>
> > Is there a way and if not will there be a way to assign a product
> > target or auto target to a adgroup via the adwords API? Looking
> > through the API I see there is productextension class derived from
> > adextension class, but its not used anywhere in the examples provided.
> > When I use the override service an error is returned that says only
> > location extensions can override campaign extensions. But really
> > extensions isnt what we need, we are looking to activate a productAd
> > via auto targets or product targets via the API. Is the any hope? Or
> > keep working manually through the adwords interface?- Hide quoted text -
>
> - Show quoted text -

AdWords API Advisor

unread,
Dec 13, 2010, 9:57:01 AM12/13/10
to AdWords API Forum
Hi,

You must specify the type of AdGroupCriterion, in this case
BiddableAdGroupCriterion. AdGroupCriterion is a base class and cannot
be used when adding a new criterion.

Best,
- Eric

SuntekSolutions

unread,
Dec 13, 2010, 9:27:56 PM12/13/10
to AdWords API Forum
Thanks Eric that worked. I now have another issue:


When I use the AdGroupAdSelector to select my ads in a adgroup it
only
returns the textAds without the productAds that are in the group. How
can I also get the product ads so that I can minipulate the promotion
text with the correct price for my product that I am selling? Code
below:


a_service =
CType(User.GetService(Google.Api.Ads.AdWords.Lib.AdWordsService.v201008.AdG­
roupAdService),
AdGroupAdService)
Dim a_selector As New AdGroupAdSelector()
Dim a_stat As New AdStatsSelector()
a_stat.dateRange = StatsSelector.dateRange
a_selector.statsSelector = a_stat
a_selector.adGroupIds() = New Long() {gID}


Dim a_page As AdGroupAdPage = a_service.get(a_selector)
Dim lst As New List(Of AdGroupAd)






On Dec 13, 6:57 am, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > - Show quoted text -- Hide quoted text -

AdWords API Advisor

unread,
Dec 15, 2010, 10:22:56 AM12/15/10
to AdWords API Forum
Hi,

Please see my response to your existing thread:

http://groups.google.com/group/adwords-api/browse_thread/thread/27ea19744790760b/

Best,
- Eric

Florian Boecker

unread,
May 24, 2012, 11:15:50 AM5/24/12
to adwor...@googlegroups.com
Hi,

is there any Way to get the Field "Product Target" in AD_PERFORMANCE_REPORT or KEYWORD_PERFORMANCE_REPORT?

Regards,
Florian
 
Reply all
Reply to author
Forward
0 new messages