c={creative}
AdGroupAdSelector s1 = new AdGroupAdSelector();
s1.setAdIds( new long[] { c } );
AdGroupAd adGroupAd = get( s1 )
AdGroupSelector s2 = new AdGroupSelector();
s2.setAdGroupIds( new long[] { adGroupAd.getAdGroupId() } );
AdGroup adGroup = get( s2 )
CampaignSelector s3r = new CampaignSelector();
s3.setIds( new long[] { adGroup.getCampaignId() } );
Campaign campaign = get( s3 )
On Mar 24, 10:58 am, Jesper Ellegaard <[email protected]> wrote:
> When tagging target urls with e.g. "c={creative}", you'll get an ad id
> when visitor arrives on page. How do I use the v2009 to relate this ad
> id to AdGroup, and Campaign?
> As of v13 the only solution was to browse the complete Adwords account
> to discover all relations my self, with quite a big API cost on this
> account. I kind of hoped that the "...Selector" objects would give the
> solution, but apparently not?!
>
> Thanks
> Jesper
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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
To unsubscribe from this group, send email to
adwords-api+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.