Hi,

Any news on this? Were you able to make it work?

I am also trying to add the CriterionUserInterest to the adgroup of the 
campaign and I am encountering this error. I used 'Display'  as the 
advertising_channel_type.

The example code looks like this (*please don't mind if there are syntax 
errors*):

ad_group_criterion_service = client.service(:AdGroupCriterionService) 
ad_group_criterion_service.mutate({
operator: 'ADD',
operand: {
xsi_type: 'BiddableAdGroupCriterion',
ad_group_id: some_number,
criterion: {
xsi_type: 'CriterionUserInterest',
id: id
}
}
})


I tried to change the id to userInterestId also but I am getting an error 
that userInterestId is not recognized.

I have tried to hard code the id also from the values that is included in 
the following: 

   - https://developers.google.com/adwords/api/docs/appendix/verticals
   - 
   
https://developers.google.com/adwords/api/docs/appendix/codes-formats#affinity-categories

Can someone help me?

On Monday, January 22, 2018 at 12:10:57 AM UTC-5, Luis Xander Talag 
(AdWords API Team) wrote:
>
> Hi Nima,
>
> Upon checking on your account, the campaign where this adGroupId belongs 
> is with a Search Network with Display Select 
> <https://support.google.com/adwords/answer/3437721> as Campaign Type 
> <https://developers.google.com/adwords/api/docs/guides/campaigns-overview#campaign_types>.
>  
> As you can see in this guide 
> <https://developers.google.com/adwords/api/docs/appendix/targetingtypes>, 
> CriterionUserInterest 
> <https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupCriterionService.CriterionUserInterest>
>  can 
> be created using user interest category ID (In-market 
> <https://developers.google.com/adwords/api/docs/appendix/in-market-categories>
>  | Affinity 
> <https://developers.google.com/adwords/api/docs/appendix/affinity-categories>)
>  which 
> is available via the Display Network only 
> <https://support.google.com/adwords/answer/6340468> campaign type. Please 
> keep in mind that audience targeting 
> <https://support.google.com/adwords/answer/2497940?hl=en&ref_topic=3122880> 
> is 
> not available for all campaign types. 
>
> I suggest that if you want to create a CriterionUserInterest criterion, 
> you should use a campaign with the Display Network only campaign type. 
> Also, you may check the UI under *Display Network > + TARGETING > 
> Interests & remarketing > Select category *on the available categories you 
> can add in your campaign.
>
> Let me know if this helps.
>
> Thanks and regards,
> Luis
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/761c6bd9-0ccc-4a47-b7a7-a82deb25f802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Kerwin Jorbina
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to