Hello,
I'm querying language data from campaign_criterion object (Google Ads) like 
this:

SELECT 
campaign_criterion.status,campaign.id,campaign_criterion.criterion_id,campaign_criterion.language.language_constant
 
FROM campaign_criterion

After getting results, I'm looping over GoogleAdsRows and trying to obtain 
language data like this:

$languageConstant = $googleAdsRow->getLanguageConstant();
/** @var LanguageConstant $languageConstant */

$code = $languageConstant !== null ? $languageConstant->getCodeValue(): '';
$name = $languageConstant !== null ? $languageConstant->getNameValue(): '';


But no data is returned ($languageConstant is null).

What is wrong here?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2ed12395-7668-4695-9eeb-7f6d95ccdbb7%40googlegroups.com.

Reply via email to