Hello Chirag,

You can try something like* $Campaign_Status = CampaignStatus
<https://github.com/googleads/google-ads-php/blob/3612ebf21afb0bfd4947d0cfa0d7e68dfb746828/src/Google/Ads/GoogleAds/V1/Enums/CampaignStatusEnum/CampaignStatus.php>::getByValue(2);* to
get the campaign enum by the value. Please give it a try and let me know if
you have any further questions.

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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/11/19 02:25:35 chirag.erepo...@gmail.com wrote:

Can you please give me example how I can use?

I am not finding any.

Thanks,

On Thursday, 11 April 2019 00:37:30 UTC+5:30, googleadsapi-forumadvisor
wrote:

Hello Chirag,

I am able to see the code snippets you have shared. Since the
campaign.status
<https://developers.google.com/google-ads/api/docs/fields/campaign#campaignstatus> represents
the ENUM value of the status. You have to get the field name type
CampaignStatus
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.enums#google.ads.googleads.v1.enums.CampaignStatusEnum.CampaignStatus>.
Please give it a try and let me know if you have any further questions.

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 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.
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/e59ac3d2-bf9f-40b5-89ff-db7d9491c6e2%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/e59ac3d2-bf9f-40b5-89ff-db7d9491c6e2%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/186trgg0000000010mbp7o002nfla2x6gmjic1p6so30c1g68r32dhm%40mail.gmail.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