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 -