Hello Sai,

Thanks for pointing out the gitHub page.

But that is not a feasible solution.

Because 
1) I need to add extra github page "marc-mabe/php-enum": "^3.1"

2) I need to have my own class or I need to extend current CampaignStatus, 
I am doing any wrong here please let me know.

 class CampaignStatus extends Enum


3) I can get Name by this

$status = CampaignStatus::byValue($googleAdsRow->getCampaign()->getStatus
());  
var_dump($status->getName()); //Returns string(7) "ENABLED" 



So I think It is not a solution.

I think issue lies with PHP library as said over here 
<https://github.com/googleads/google-ads-php/issues/38>

Thanks.


On Monday, 15 April 2019 21:32:33 UTC+5:30, googleadsapi-forumadvisor wrote:
>
> Hello Chirag,
>
> You have to use the CampaignStatusEnum 
> <https://github.com/googleads/google-ads-php/blob/3612ebf21afb0bfd4947d0cfa0d7e68dfb746828/src/Google/Ads/GoogleAds/V1/Enums/CampaignStatusEnum/CampaignStatus.php>
>  and 
> get the enum by the value you get with the CampaignStatus 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.enums#google.ads.googleads.v1.enums.CampaignStatusEnum.CampaignStatus>
>  field 
> in the query. I found a GitHub page 
> <https://github.com/marc-mabe/php-enum> that shown all the possible ways 
> to fetch Enums, please take a look and give it a try again.
>
> Regards,
> Sai Teja, Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     https://ads-developers.googleblog.com/search/label/google_ads_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=4-9097000026166&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e1addce-f141-4d62-98db-df5296a8032b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Actual ... cv
    • Re... cv
    • Re... cv
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... cv
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... cv
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... cv
                • ... cv
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... cv

Reply via email to