adId for an ad

128 views
Skip to first unread message

IndexTools

unread,
Feb 16, 2007, 10:02:07 AM2/16/07
to AdWords API Forum

Hello,

I am trying to get an ad via the getAd(int adGroupId, long adId)
method of AdService service.
My question is how I can determine the adId as the second parameter of
the above mentioned method for a specific ad which I can see on the UI
of the Google AdWords? In other words, is the id of an ad anywhere on
the UI? I could see an 'adGroupCreativeId=XXXX' in the URL when I
clicked Edit on an ad, but it does not match with the required adId
parameter since the getAd(int adGroupId, long adId) method gives back
an error message about there is no ad with that given id in the
adgroup.

Can anybody help me?

Thanks,
Peter

Mehdi

unread,
Feb 21, 2007, 11:18:29 AM2/21/07
to AdWords API Forum
You have twoo ways in order to know a Google id of an ad.
The first, take it, after calling addAds, in the result ad.
The second, find your ad in the result of getAllAds on the adGroup of
your ad.

Hope it will help you

Reply all
Reply to author
Forward
0 new messages