Hi, yes. I call the api and it return Enabled and stuff, but I need to 
call api for a status like inactive like image, or something indicated the 
ads is stop. I need it for my script so it will notify me when it happen.

On Monday, September 16, 2024 at 1:37:00 AM UTC-5 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> You can use the below sample query to retrieve the status of the campaign. 
> Please note that the status of the campaign (21694145989) is "ENABLED".  
>
>
> SELECT campaign.status, campaign.name, campaign.resource_name, campaign.id, 
> campaign.primary_status, campaign.serving_status, 
> campaign.primary_status_reasons FROM campaign WHERE campaign.id = 21694145989
>
> You can use the search 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/search?apix=true>
>  or searchStream 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/searchStream?apix=true>
>  methods 
> in making the API calls while retrieving the data. Additionally, you can 
> utilize the Google Ads Query Builder 
> <https://developers.google.com/google-ads/api/fields/v17/campaign_query_builder>
>  and Query Validator 
> <https://developers.google.com/google-ads/api/fields/v17/query_validator> to 
> build and validate the queries in the Google Ads API.
>
> I would recommend you refer to this guide on 'campaign 
> <https://developers.google.com/google-ads/api/fields/v17/campaign>' for 
> more information regarding the fields/metrics/segments that can be used 
> with the campaign resource.
>
> I hope this helps.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vG8cy:ref" (ADR-00268177)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/57829952-0eb6-43af-aaed-0bc6093adeban%40googlegroups.com.
  • Ho... Phuong Nguyen
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Phuong Nguyen
      • ... Phuong Nguyen

Reply via email to