Hi Anash, I just rerun this request for the same account/campaign, here are examples how correct response looks and how incorrect response looks: Correct: [image: Screen Shot 2020-08-18 at 3.25.21 PM.png] Incorrect: [image: Screen Shot 2020-08-18 at 3.25.31 PM.png] As you can see correct campaign criteria contains location inside it.
But since criterion_id looks the same as geo_target_constant_id we can use your workaround and extract it from campaign_criterion resource name. [image: Screen Shot 2020-08-18 at 3.25.21 PM.png] Thanks, Tetiana On Monday, August 17, 2020 at 11:05:40 PM UTC+3 adsapiforumadvisor wrote: > Hi Tetiana, cv, > > I'll file a request with the teams to investigate further. From an initial > glance, I do not see anything wrong with your request. > > As a workaroud, you can parse and lookup this information yourself as > follows: > > 1. Split the resource name by the ~ sign. The criterion ID is the second > half (e.g. 20321 from Tetiana's screenshot). > 2. Make a call to LanguageConstantService > <https://developers.google.com/google-ads/api/reference/rpc/v4/LanguageConstantService> > > to retrieve the language details. Call GeoTargetConstantService > <https://developers.google.com/google-ads/api/reference/rpc/v4/GeoTargetConstantService> > > for location details. > 3. Optionally, you can look up the values from the csvs linked at > https://developers.google.com/adwords/api/docs/appendix/codes-formats#languages > and https://developers.google.com/adwords/api/docs/appendix/geotargeting > respectively. > E.g. if you lookup the second CSV, 20321 corresponds > to "Ile-de-France,France", which can be confirmed on the UI under campaign > settings for the campaign ID you posted. > > Cheers > Anash > > ref:_00D1U1174p._5004Q23IuF2: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 "AdWords API and Google Ads 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/2f58f987-38b4-4eb1-9886-92cd565edbedn%40googlegroups.com.
