how to retrieve criterions of youtube campaign?

39 views
Skip to first unread message

Q

unread,
Mar 5, 2020, 3:38:32 AM3/5/20
to AdWords API and Google Ads API Forum
How to retrieve youtube campaign's criterions?

I use this service "CampaignCriterionServiceInterface" to retrieve all criterions of an account  for youtube promotion.
Here are my parameters:
Selector fields: "Id", "CampaignId", "BidModifier","LanguageCode","LocationName","ParentLocations","DisplayType","PlatformName","UserListId",
      "UserListName","UserListMembershipStatus","UserListEligibleForSearch","UserListEligibleForDisplay","CampaignCriterionStatus","DayOfWeek","StartHour","StartMinute",
"EndHour","EndMinute"
Predicate criterions = new Predicate("CriteriaType",PredicateOperator.IN,new String[]{"LANGUAGE","LOCATION","PLATFORM","USER_LIST","AD_SCHEDULE"});
Predicate criterionStatus = new Predicate("CampaignCriterionStatus",PredicateOperator.IN,new String[]{"ACTIVE","PAUSED"});
Should i add "youtube channel" or "youtube video" type in predications?

Thank you for helping me solving this issue~
 

Google Ads API Forum Advisor Prod

unread,
Mar 5, 2020, 11:41:21 AM3/5/20
to adwor...@googlegroups.com
Hello,

Yes, you will need to add the types YOUTUBE_VIDEO and YOUTUBE_CHANNEL onto your predicates for CriteriaType.

Cheers,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UXUB1U:ref

Q

unread,
Mar 5, 2020, 11:03:44 PM3/5/20
to AdWords API and Google Ads API Forum
Thank you for your help. 
And when I read the document (https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.YouTubeVideo), I couldn't figure out the meaning of this line  "A criterion of this type is only excludable."  It means I can only exclude this criterion in campagin settings?

Google Ads API Forum Advisor Prod

unread,
Mar 6, 2020, 9:38:02 AM3/6/20
to adwor...@googlegroups.com
Hi,

Yes, that is correct. At the campaign level, you can only exclude these criteria. At the ad group level, they can be targeted. You can have a look at this chart which shows what levels each criteria type can be targeted and excluded. 
Reply all
Reply to author
Forward
0 new messages