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.
For more options, visit https://groups.google.com/d/optout.