Hi Juan,

Could you clarify if my understanding is correct that the *ads* with '
*REMOVED*' status was included in the API response? If yes, the ads with "
*PAUSED*" and "*ENABLED*" statuses are the only ads that will be included
in the API response unless you implemented the filter below in your
selector.

.in(AdGroupAdField.Status, "ENABLED", "PAUSED", "DISABLED")

However, it seems that you haven't set the filter specified above but the
specific *ads* with '*removed*' status was included in the API response.
With this, could you provide the complete SOAP request and response logs
together with the customer ID so I can further investigate it.

Regards,
Ejay
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/21/19 07:56:36 [email protected] wrote:

Hello all,

I need to filter out removed Ads when I retrieve AdGroup objects. The
removed Ads are easily to detect using the Web UI


But when I want to determine the Ad status using the API, I'm unable to
determine that. For example if I query the AdGroups using the following
code in Java

    Selector selectorAds = builder.fields(AdGroupAdField.Id, AdGroupAdField.
AdGroupId,
        AdGroupAdField.AdType, AdGroupAdField.Status, AdGroupAdField.
BaseCampaignId,
        AdGroupAdField.CreativeFinalUrls).offset(offset).limit(PAGE_SIZE).
equals(
            AdGroupAdField.BaseCampaignId, Objects.toString(646465621L)).
build();
// do the query

The selector returns all the AdGroup's Ad objects. For example, below Ad is
removed.



        <getResponse xmlns="
https://adwords.google.com/api/adwords/cm/v201809";>
            <rval>
                <totalNumEntries>24</totalNumEntries>
                <Page.Type>AdGroupAdPage</Page.Type>
                <entries>
                    <adGroupId>34810610889</adGroupId>
                    <ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
" xsi:type="TextAd">
                        <id>116841139809</id>
                        <type>TEXT_AD</type>
                        <Ad.Type>TextAd</Ad.Type>
                    </ad>
                    <status>ENABLED</status>
                    <baseCampaignId>646465621</baseCampaignId>
                </entries>

How can I determine if an Ad is removed or not using the API?


Thanks

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a165861f-7a1a-4f14-aaf9-4f0a9bb393f2%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/a165861f-7a1a-4f14-aaf9-4f0a9bb393f2%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 [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/08p11g00040000000tjpnm0027pk7gz64mj8c1i6co30c1g68r36dpm%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... Juan Pablo Gardella
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to