AdGroupCriterionSelector#setUserStatuses does not work.

16 views
Skip to first unread message

ryo

unread,
Feb 8, 2010, 6:29:57 AM2/8/10
to AdWords API Forum
Hi.

I use Java v200909.

I have a question about
AdGroupCriterionSelector#setUserStatuses(Userstatus[] userStatuses).
Userstatus.ACTIVE and Userstatus.PAUSED are well-functioning.
However, Userstatus.DELETED is NOT well-functioning, I think.
For example, the following code doesn't work.

AdGroupCriterionServiceInterface adGroupCriterionService
=
user.getService(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);
AdGroupCriterionSelector selector = new AdGroupCriterionSelector();
selector.setIdFilters(new AdGroupCriterionIdFilter[]{
new AdGroupCriterionIdFilter(12345L, 67890L, null)
});
selector.setCriterionUse(CriterionUse.BIDDABLE);
selector.setUserStatuses(new UserStatus[]{UserStatus.DELETED});

adGroupCriterionService.get(selector).getEntries();


A part of soap request is the following.

<soapenv:Body>
<get xmlns="https://adwords.google.com/api/adwords/cm/v200909">
<selector>
<idFilters>
<campaignId>12345</campaignId>
<adGroupId>67890</adGroupId>
</idFilters>
<criterionUse>BIDDABLE</criterionUse>
<userStatuses>DELETED</userStatuses>
</selector>
</get>
</soapenv:Body>

AdWords API Advisor

unread,
Feb 8, 2010, 11:29:17 AM2/8/10
to AdWords API Forum
Hi,

I just ran some tests and the selector appears to be working
correctly. Please keep in mind that deleting a keyword can have two
different outcomes:

- If the keyword has never had an impression then it will be
completely removed from the ad group, and it will not be returned with
any get() requests.
- If the keyword has had some impressions then it will remain in the
ad group with the DELETED status.

It could be that your ad group just doesn't have any keywords in this
DELETED status. You can verify this in the AdWords web interface.

Best,
- Eric Koleda, AdWords API Team

ryo

unread,
Feb 9, 2010, 4:53:23 AM2/9/10
to AdWords API Forum
Oh, as you say, the keyword has never had an impression.

Where this specification is published?
I searched AdWords v2009 and google forum, however, I can't find...

And, the Creative is the same specification?

On 2月9日, 午前1:29, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Feb 9, 2010, 12:17:31 PM2/9/10
to AdWords API Forum
Hi,

Unfortunately this behavior hasn't been clearly documented yet, and I
apologize for any confusion. AdGroupAds (Creatives) do not behave the
same, as even an ad with zero impressions will remain with the deleted
status.

Best,
- Eric

ryo

unread,
Feb 10, 2010, 6:16:55 AM2/10/10
to AdWords API Forum
Hi,

I understand.
Thank you for replying.

On 2月10日, 午前2:17, AdWords API Advisor <adwordsapiadvi...@google.com>

Almas Kanjiyani

unread,
Feb 16, 2010, 1:31:51 AM2/16/10
to AdWords API Forum
Hi Eric,

I had a question in mind. For AdGroupAd's whose status is Disabled, I
am not able to retrieve it from Google with the get() API call.

How can we get the AdGroupAds from Google whose Status="Disabled"?

Thanks,
Almas

On Feb 9, 10:17 pm, AdWords API Advisor <adwordsapiadvi...@google.com>

> > > >     </soapenv:Body>- Hide quoted text -
>
> - Show quoted text -

AdWords API Advisor

unread,
Feb 17, 2010, 1:13:23 PM2/17/10
to AdWords API Forum
Hi Almas,

This is a known issue, that the AdGroupAdService doesn't return
DISABLED ads. Unfortunately I don't have a timeline for when a fix or
workaround will be made available.

Best,
- Eric

ryo

unread,
Feb 18, 2010, 7:03:54 AM2/18/10
to AdWords API Forum
Hi Eric,

When this issue is fixed, we want to know that infomation.
How can we know that?

The following issues list?
http://code.google.com/p/google-api-adwords-java/issues/list

On 2月18日, 午前3:13, AdWords API Advisor <adwordsapiadvi...@google.com>

AdWords API Advisor

unread,
Feb 18, 2010, 12:04:56 PM2/18/10
to AdWords API Forum
Hi,

The issue list you pointed to is for the Java client library, and is
not meant to track generic API issues. Unfortunately there is no
central place to get this information, and your best option is to ping
this thread and I can check on the progress.

Best,
- Eric

On Feb 18, 7:03 am, ryo <tadaima10ji27...@gmail.com> wrote:
> Hi Eric,
>
> When this issue is fixed, we want to know that infomation.
> How can we know that?
>

> The following issues list?http://code.google.com/p/google-api-adwords-java/issues/list

sidd

unread,
Mar 22, 2010, 2:02:52 PM3/22/10
to AdWords API Forum
Any progress on this issue? We're approaching sunset of the v13 API,
just wondering if this has been addressed yet.

On Feb 18, 10:04 am, AdWords API Advisor
<adwordsapiadvi...@google.com> wrote:
> Hi,
>


> The issue list you pointed to is for the Java client library, and is
> not meant to track generic API issues.  Unfortunately there is no
> central place to get this information, and your best option is to ping
> this thread and I can check on the progress.
>
> Best,
> - Eric
>
> On Feb 18, 7:03 am, ryo <tadaima10ji27...@gmail.com> wrote:
>
> > Hi Eric,
>
> > When this issue is fixed, we want to know that infomation.
> > How can we know that?
>
> > The following issues list?http://code.google.com/p/google-api-adwords-java/issues/list
>
> > On 2月18日, 午前3:13, AdWords API Advisor <adwordsapiadvi...@google.com>
> > wrote:
>
> > > Hi Almas,
>
> > > This is a known issue, that the AdGroupAdService doesn't return

> > >DISABLEDads.  Unfortunately I don't have a timeline for when a fix or


> > > workaround will be made available.
>
> > > Best,
> > > - Eric
>
> > > On Feb 16, 1:31 am, Almas Kanjiyani <kanjiyanial...@gmail.com> wrote:
>
> > > > Hi Eric,
>

> > > > I had a question in mind. ForAdGroupAd'swhose status isDisabled, I

AdWords API Advisor

unread,
Mar 23, 2010, 12:20:47 PM3/23/10
to AdWords API Forum
Hi,

Unfortunately the ability to retrieve DISABLED ads will not be
available until the next version of the API. Until then you can use
the v13 ReportService to obtain information about deleted ads:

http://code.google.com/apis/adwords/docs/developer/adwords_api_report_structure.html#aggr_Creative

Best,
- Eric

Reply all
Reply to author
Forward
0 new messages