Hi Peter, I'm familiar with this documentation as well: """ the country_code <https://developers.google.com/google-ads/api/reference/rpc/v12/ProductBiddingCategoryInfo#country_code> says that it should "*It must match the campaign.shopping_setting.sales_country field.*", """
However, it looks like it's possible for Campaigns to have no *campaign.shopping_setting.sales_country* field set, but still have product categories. On thing I'd like to mention as well for context is this blog post: Country targeting in Shopping Ads campaigns is changing in August 2022 <http://ads-developers.googleblog.com/2022/08/country-targeting-in-shopping-ads.html> It was announced that sales_country was going to be replaced by feed_label. I thought it might be the case that we are guaranteed a feed_label if no sales_country exists but that doesn't appear to be the case. To reproduce this, 1. create a new Performance Max Campaign with a merchant store 2. have it target all feeds (so there's no feed_label - there already won't be a sales_country on the Campaign) 3. create a listing group that uses product category Thanks, Kevin On Friday, November 4, 2022 at 12:54:52 PM UTC-7 adsapi wrote: > Hi Kevin, > > Thank you for reaching out to our API support team. > > In this example > <https://developers.google.com/google-ads/api/docs/performance-max/listing-groups> > and > in this section > <https://developers.google.com/google-ads/api/docs/performance-max/listing-groups#available_dimensions_for_listingdimensioninfo>, > > you may see that the *ProductBiddingCategoryInfo* is one of the listing > dimensions that can be used when creating your filter. Now, looking into > its documentation > <https://developers.google.com/google-ads/api/reference/rpc/v12/ProductBiddingCategoryInfo> > > and comparing it to the asset_group_listing_group_filter > <https://developers.google.com/google-ads/api/fields/v12/asset_group_listing_group_filter> > > report, we can then see that only the two below fields can be extracted : > > - > asset_group_listing_group_filter.case_value.product_bidding_category.id > > <https://developers.google.com/google-ads/api/fields/v12/asset_group_listing_group_filter#asset_group_listing_group_filter.case_value.product_bidding_category.id> > > - > asset_group_listing_group_filter.case_value.product_bidding_category.level > > <https://developers.google.com/google-ads/api/fields/v12/asset_group_listing_group_filter#asset_group_listing_group_filter.case_value.product_bidding_category.level> > > > Since the country_code > <https://developers.google.com/google-ads/api/reference/rpc/v12/ProductBiddingCategoryInfo#country_code> > > says that it should "*It must match the > campaign.shopping_setting.sales_country field.*", and if you have > initially set this in your Performance Max campaign for retail > <https://developers.google.com/google-ads/api/docs/performance-max/retail#create_a_performance_max_retail_campaign>, > > then you can generate the campaign > <https://developers.google.com/google-ads/api/fields/v12/campaign> report > and extract the campaign.shopping_setting.sales_country > <https://developers.google.com/google-ads/api/fields/v12/campaign#campaign.shopping_setting.sales_country> > > to get this value, since it should be the same. > > However, if in the Google Ads UI the country_code attribute is available > directly for the asset group listing group filter, you may provide to our > team a screenshot of the UI view containing this information so our team > can then create a feature request, subject for review, for its support in > the API. > > Should your screenshot contain your user / account information, you may > then send the requested information via the *Reply privately to author* > option. If this option is not available, you may send the details directly > to our [email protected] alias instead. > > Best regards, > > [image: Google Logo] > Peter Laurence > Google Ads API Team > > > ref:_00D1U1174p._5004Q2g0IH3:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/68fd17c6-6e1c-4cad-975e-8432b6933cc2n%40googlegroups.com.
