Hello Ronak,

You can use like this

AdGroupStatus::name($campaign->getStatus()),



On Monday, 17 June 2019 19:09:53 UTC+5:30, Ronak Shah wrote:
>
> Hello,
>
> We are querying campaign service 
> <https://developers.google.com/google-ads/api/docs/fields/campaign> to 
> get list of campaigns
>
>            $query = 'SELECT campaign.id, campaign.name, campaign.status 
> FROM campaign Where campaign.status IN ("ENABLED", "PAUSED", "REMOVED") 
> ORDER BY campaign.id';
>             
>             // Issues a search request by specifying page size.
>             $response = $googleAdsServiceClient->search($client_id, 
> $query, ['pageSize' => self::PAGE_SIZE]);
>
>
> But campaign response returns status as numbers (2,3,4) instead of string 
> "ENABLED", "PAUSED", "REMOVED". 
>
> How do we map these numbers with actual status?
>
> Thanks,
> Ronak
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3c4e7b6b-1565-4e23-9cac-c8151ec6f787%40googlegroups.com.

Reply via email to