Hi, Unfortunately, I can't get language code or language name using *getLanguage* -> *getLanguageConstantValue* I saw that they can be retrieved from LanguageConstant object, but there is no method allowing to get LanguageConstant from CampaignCriterion.
$googleAdsRow->getCampaignCriterion()->getLanguage()->getLanguageConstant() returns string and not LanguageConstant object... Please advise. On Monday, June 24, 2019 at 11:50:52 AM UTC+3, adsapiforumadvisor wrote: > > Hi, > > My apologies for the confusion. We currently do not have a specific PHP > example for what you are looking for. However, you can refer to this PHP > example > <https://github.com/googleads/google-ads-php/blob/master/examples/Targeting/GetCampaignTargetingCriteria.php> > > on how to retrieve campaign targeting criteria. > > As for retrieving the language constant, you may try in PHP something > similar to this : *getLanguage* -> *getLanguageConstantValue*. Let me > know if this works for you. > > Best regards, > Peter > Google Ads API Team > > ref:_00D1U1174p._5001UCZ1Uv: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/900bf966-0356-4c60-8c18-30b81b3e12fe%40googlegroups.com.
