Re: How to access a specific campaign's GeoTargetList targets
You will always receive all target types for the campaign. There is no way to get only the GeoTargets. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
So just to reiterate what you said, we can only retrieve each campaign's targetlist. However, we can not retrieve a each campaign's geotargetlist. Does this also mean we can not access a particular campaign's: 1. AdScheduleTargetList 2. DemographicTargetList 3. GeoTargetList 4. LanguageTargetList 5. NetworkTargetList 6. PlatformTargetList So does that mean we can only add or update GeoTargetList (and the other 5) for a campaign? On Apr 20, 2:35 am, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: You will always receive all target types for the campaign. There is no way to get only the GeoTargets. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
You can send whatever collection of targetlists in the mutate. Those targetlists can be for mulitple campaigns for the same mutate. You don't need to send all targetlists types (Language, Geo, Demograhic etc) at the same time. Let's say you want to update geotargets on 5 campaigns. In that case you would send 5 geotargetlists with 5 different campaign ids. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
Hi, As Peer said, the limitation is that you cannot get *only* the GeoTargetList for a campaign. When using the CampaignTargetService you will always receive all the TargetLists for a campaign, which will always include the GeoTargetList. When performing a mutate however (using the SET operation) you can update only the TargetLists you want, since each CampaignTargetOperation takes only one TargetList. http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.CampaignTargetOperation.html Best, - Eric Koleda, AdWords API Team On Apr 20, 11:02 am, dagr8anil anil.matthew.geo...@gmail.com wrote: So just to reiterate what you said, we can only retrieve each campaign's targetlist. However, we can not retrieve a each campaign's geotargetlist. Does this also mean we can not access a particular campaign's: 1. AdScheduleTargetList 2. DemographicTargetList 3. GeoTargetList 4. LanguageTargetList 5. NetworkTargetList 6. PlatformTargetList So does that mean we can only add or update GeoTargetList (and the other 5) for a campaign? On Apr 20, 2:35 am, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: You will always receive all target types for the campaign. There is no way to get only the GeoTargets. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
Ahh i c. But lets say i just wanted to retrieve data for reporting purposes, is their anyway to get a particular campaigns targetlists types (Language, Geo, Demograhic) atrributes. Like for example, what if i wanted to receive a campaign's geotargetlist: CityTarget. Is that possible? I am sorry to be a bother, i just want to make sure. and i thank you for all the help so far! On Apr 20, 10:20 am, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: You can send whatever collection of targetlists in the mutate. Those targetlists can be for mulitple campaigns for the same mutate. You don't need to send all targetlists types (Language, Geo, Demograhic etc) at the same time. Let's say you want to update geotargets on 5 campaigns. In that case you would send 5 geotargetlists with 5 different campaign ids. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
When it comes to GET then the only selector filter you can set are the campaignIds. There is no way to only receive one type of targets (e.g. geotargets). Also, there is no way to receive only one type of geotargets (e.g. cities). -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
Maybe i explaining this wrong, I understand what you and the advisor are saying, that it will show all the target types associated using the selector. So if u r using the selector, and say a the selector pulls 1.AdScheduleTargetList 2. DemographicTargetList 3. GeoTargetList 4. LanguageTargetList how do i access each targetlist atrributes (i.e. targets) or is that possible with the current selector. On Apr 20, 10:30 am, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: When it comes to GET then the only selector filter you can set are the campaignIds. There is no way to only receive one type of targets (e.g. geotargets). Also, there is no way to receive only one type of geotargets (e.g. cities). -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
Each targetlist has a property called targets which contains the array of targets. This property is not available on the abstract TargetList class. It is only available on the specific types, e.g. GeoTargetList.targets: http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.GeoTargetList.html In VB.NET you should loop on the page.entries, check their type and cast into that type, e.g. CType(entries(x), GeoTargetList).targets Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: How to access a specific campaign's GeoTargetList targets
so something like this? Dim i As Integer = 0 For Each TargetList As TargetList In CampaignTargetPage.entries Log(GetAdwordsListingsV2009, Campaign target of type = TargetList.TargetListType was found for campaign with ID = TargetList.campaignId) If TargetList.TargetListType = GeoTargetList Then For Each GeoTarget As GeoTarget In CType(CampaignTargetPage.entries(i), GeoTargetList).targets Log(GetAdwordsListingsV2009, GeoTarget.TargetType.ToString) Next End If i = i + 1 Next if this is the case, i am getting an error: Object reference not set to an instance of an object. Am i doing something wrong? On Apr 20, 11:00 am, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: Each targetlist has a property called targets which contains the array of targets. This property is not available on the abstract TargetList class. It is only available on the specific types, e.g. GeoTargetList.targets: http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg... In VB.NET you should loop on the page.entries, check their type and cast into that type, e.g. CType(entries(x), GeoTargetList).targets Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.comhttp://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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
How to access a specific campaign's GeoTargetList targets
is their anyway to get a specific campaign's GeoTargetList targets. ? Basically i access all the campaigns and use a selector to access the particular campaign's targets. But from there, i am having trouble accessing the geotarget list. is their any examples to access that data? Code Below - Dim AdwordsCampaignID, CampaignName, Status As String Dim TargetAll, Scheduled As Boolean Dim CampaignID As Integer Dim campaignService As CampaignService = user.GetService(AdWordsService.v200909.CampaignService) campaignService.RequestHeader.clientEmail = Email Try ' Get all campaigns. Dim page As CampaignPage = campaignService.get(New CampaignSelector) Log(GetAdwordsListingsV2009, Number of Entries for Email : page.totalNumEntries) ' Display campaigns. If (((page) IsNot Nothing) AndAlso ((page.entries) IsNot Nothing)) Then If (page.entries.Length 0) Then For Each campaign As Campaign In page.entries AdwordsCampaignID = campaign.id.ToString CampaignName = campaign.name.ToString TargetAll = False 'need to do Scheduled = False 'need to do Select Case campaign.status Case CampaignStatuses.ACTIVE Status = ACTIVE Case CampaignStatuses.DELETED Status = DELETED Case CampaignStatuses.PAUSED Status = PAUSED End Select Dim campaignIds() As Long = {AdwordsCampaignID} campaignIds(0) = AdwordsCampaignID ' Get all Campaign Targets. Dim CampaignTargetService As CampaignTargetService = user.GetService(AdWordsService.v200909.CampaignTargetService) CampaignTargetService.RequestHeader.clientEmail = Email Dim CampaignTargetSelector As CampaignTargetSelector = New CampaignTargetSelector() CampaignTargetSelector.campaignIds = campaignIds Try Dim CampaignTargetPage As CampaignTargetPage = CampaignTargetService.get(CampaignTargetSelector) ' Display campaigns Targets. If (((CampaignTargetPage) IsNot Nothing) AndAlso ((CampaignTargetPage.entries) IsNot Nothing)) Then For Each TargetList As TargetList In CampaignTargetPage.entries If TargetList.TargetListType = GeoTargetList Then end if Next Else Log(GetAdwordsListingsV2009, No campaigns targets were found.) End If Catch ex As Exception Throw New Exception(googleV2009 GetAllCampaignsForIndividualAccount Error: ex.Message ex.StackTrace) End Try 'Uncomment CampaignID = GoogleDB.SaveCampaigns(AccountID, AdwordsCampaignID, CampaignName, TargetAll, Scheduled, Status) 'Console.WriteLine((Campaign with id = '{0}', name = '{1}' and status = '{2}' + was found.), campaign.id, campaign.name, campaign.status) Next Else Log(GetAdwordsListingsV2009, No campaigns were found.) End If End If Catch ex As Exception Throw New Exception(googleV2009 GetAllCampaignsForIndividualAccount Error: ex.Message ex.StackTrace) End Try -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
How to access a specific campaign's GeoTargetList targets
is their anyway to get a specific campaign's GeoTargetList targets. ? Basically i access all the campaigns and use a selector to access the particular campaign's targets. But from there, i am having trouble accessing the geotarget list. is their any examples to access that data? Code Below - Dim AdwordsCampaignID, CampaignName, Status As String Dim TargetAll, Scheduled As Boolean Dim CampaignID As Integer Dim campaignService As CampaignService = user.GetService(AdWordsService.v200909.CampaignService) campaignService.RequestHeader.clientEmail = Email Try ' Get all campaigns. Dim page As CampaignPage = campaignService.get(New CampaignSelector) Log(GetAdwordsListingsV2009, Number of Entries for Email : page.totalNumEntries) ' Display campaigns. If (((page) IsNot Nothing) AndAlso ((page.entries) IsNot Nothing)) Then If (page.entries.Length 0) Then For Each campaign As Campaign In page.entries AdwordsCampaignID = campaign.id.ToString CampaignName = campaign.name.ToString TargetAll = False 'need to do Scheduled = False 'need to do Select Case campaign.status Case CampaignStatuses.ACTIVE Status = ACTIVE Case CampaignStatuses.DELETED Status = DELETED Case CampaignStatuses.PAUSED Status = PAUSED End Select Dim campaignIds() As Long = {AdwordsCampaignID} campaignIds(0) = AdwordsCampaignID ' Get all Campaign Targets. Dim CampaignTargetService As CampaignTargetService = user.GetService(AdWordsService.v200909.CampaignTargetService) CampaignTargetService.RequestHeader.clientEmail = Email Dim CampaignTargetSelector As CampaignTargetSelector = New CampaignTargetSelector() CampaignTargetSelector.campaignIds = campaignIds Try Dim CampaignTargetPage As CampaignTargetPage = CampaignTargetService.get(CampaignTargetSelector) ' Display campaigns Targets. If (((CampaignTargetPage) IsNot Nothing) AndAlso ((CampaignTargetPage.entries) IsNot Nothing)) Then For Each TargetList As TargetList In CampaignTargetPage.entries If TargetList.TargetListType = GeoTargetList Then end if Next Else Log(GetAdwordsListingsV2009, No campaigns targets were found.) End If Catch ex As Exception Throw New Exception(googleV2009 GetAllCampaignsForIndividualAccount Error: ex.Message ex.StackTrace) End Try 'Uncomment CampaignID = GoogleDB.SaveCampaigns(AccountID, AdwordsCampaignID, CampaignName, TargetAll, Scheduled, Status) 'Console.WriteLine((Campaign with id = '{0}', name = '{1}' and status = '{2}' + was found.), campaign.id, campaign.name, campaign.status) Next Else Log(GetAdwordsListingsV2009, No campaigns were found.) End If End If Catch ex As Exception Throw New Exception(googleV2009 GetAllCampaignsForIndividualAccount Error: ex.Message ex.StackTrace) End Try -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en