Any Information Available ??

On Friday, 12 November 2021 at 22:28:00 UTC+5:30 Binu Mathew wrote:

> Hi All
>
> Here is the code i use get languages set to an individual campaign 
>
> $language_query='SELECT language_constant.id FROM campaign_criterion';
>          if ($id !== null) {
>             $language_query .= " WHERE campaign.id= $id ";
>         }
>         $response =$googleAdsServiceClient->searchStream('<account_id> 
> ',$language_query);
>       
>         foreach ($response->iterateAllElements() as $googleAdsRow) {
>             $campaignCriterion = $googleAdsRow->getCampaignCriterion();
>             $newCompete = new \StdClass();          
>             $newCompete->langauge_code = 
> $campaignCriterion->getLanguage()->getCode();
>              array_push($googleAdsRow, $newCompete);
>             
>         }
>
> This code return following error any idea why ? 
>
> message: "Call to a member function getCode() on null"
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a1b76d79-1827-4297-8958-6cbd82e0d705n%40googlegroups.com.
  • Ca... Binu Mathew
    • ... Binu Mathew
      • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to