AdWords API Re: To many connection failures

2009-11-04 Thread Santhosh Nair
Thank you Eric. This account has around 200,000 keywords . but there
are a few ad groups with more than  1000 ( up to 1600 ) keywords. Do
you think this might cause 502 errors ?  I assume, the only solution
until v2009 goes to production is to keep trying and pray that API
doesn't timeout next time ? . Is there a time of day when there is
greater chance for success ?

thanks,
Santhosh

On Nov 4, 7:07 am, AdWords API Advisor 
wrote:
> Hi Santhosh,
>
> I was able to make that request without receiving 502 errors.  Do you
> find that the errors are limited to certain ad groups?  I've noticed
> that this account is very large, and it could be that for some ad
> groups the results may be too large to be returned in a single
> response.  One of the nice features about the v2009 API is the ability
> to specify paging, so large requests can be broken into smaller 
> ones:http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCrite
>
> Best,
> - Eric
>
> On Nov 3, 5:43 pm, Santhosh Nair  wrote:
>
>
>
> > Hi Eric,
> >  Here is a sample API  call that Failed.  We didn't get any response
> > back apart from the  "Bad Gateway/502" error.
> > As I mentioned, we keep trying  even after the failure and it may work
> > for a while.  We were not able to download the entire campaign data
> > yet.  Please let me know if this help  you identify the problem.
> > thanks
> > Santhosh
> > -
> > 
> >  
> >   XXX
> >   xxx
> >   xxx
> >   xxx > G:email>
> >   xxx
> >  
> >  
> >   
> >    1241093xxx
> >   
> >  
> > 
>
> > On Nov 3, 9:08 am, AdWords API Advisor 
> > wrote:
>
> > > Hi Santhosh,
>
> > > The account appears to be in good standing, and I was able to make
> > > some requests against it without a problem.  Can you please provide
> > > the SOAP XML for a specific request which fails?
>
> > > Best,
> > > - Eric
>
> > > On Oct 29, 7:38 pm, Santhosh Nair  wrote:
>
> > > > Hi Eric,
> > > >     I emailed the customer id
>
> > > > thanks,
> > > > Santhosh
>
> > > > On Oct 29, 7:21 am, AdWords API Advisor 
> > > > wrote:
>
> > > > > Hi Santhosh,
>
> > > > > In order to further troubleshoot the problem I will need to get the
> > > > > customer ID for this account.  Please don't post it to the forum, but
> > > > > instead email me the information at adwordsapiadvi...@google.com.
>
> > > > > Best,
> > > > > - Eric
>
> > > > > On Oct 28, 6:28 pm, Santhosh Nair  wrote:
>
> > > > > > Thanks Eric.  It looks like the error occours randomly (on this
> > > > > > particular account) . API returned these errors while  retrieving 
> > > > > > list
> > > > > > of Keywords as well as Ads.
> > > > > > This error is easily reproducible on this account. It is been 5 days
> > > > > > since we tried to download campaign data, it fails even after more
> > > > > > than 100 retries.
>
> > > > > > regards,
> > > > > > Santhosh
>
> > > > > > On Oct 28, 7:37 am, AdWords API Advisor 
> > > > > > 
> > > > > > wrote:
>
> > > > > > > Hi Santhosh,
>
> > > > > > > 502 errors are usually returned when a timeout has occurred 
> > > > > > > between
> > > > > > > internal Google servers.  Are you noticing that there certain 
> > > > > > > services
> > > > > > > or method that are triggering this error?  Is the error 
> > > > > > > consistent or
> > > > > > > reproducible?
>
> > > > > > > Best,
> > > > > > > - Eric
>
> > > > > > > On Oct 27, 8:22 pm, Santhosh Nair  wrote:
>
> > > > > > > > Hello Eric,
> > > > > > > >    Thank you for you response. We do not experience any network 
> > > > > > > > issues
> > > > > > > > and in fact  API access to all other accounts (to other seach 
> > > > > > > > engines
> > > > > > > >too) works with out errors.
> > > > > > > > Here is the stack trace from last exception. Please let's know 
> > > > > > > > whether
> > > > > > > > some particular  accounts may experienceconnectionissues at this
> > > > > > > > moment.
>
> > > > > > > > org.jboss.remoting.CannotConnectException: Can not connect http 
> > > > > > > > client
> > > > > > > > invoker. Invalid HTTP server response
> > > > > > > > [502] - Bad Gateway. Response: Bad Gateway/502.
> > > > > > > > at
> > > > > > > > org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection
> > > > > > > > (HTTPClientInvoker.java:368)
> > > > > > > > at org.jboss.remoting.transport.http.HTTPClientInvoker.transport
> > > > > > > > (HTTPClientInvoker.java:148)
> > > > > > > > at org.jboss.remoting.MicroRemoteClientInvoker.invoke
> > > > > > > > (MicroRemoteClientInvoker.java:141)
> > > > > > > > at org.jboss.remoting.Client.invoke(Client.java:1858)
> > > > > > > > at org.jboss.remoting.Client.invoke(Client.java:718)
> > > > > > > > at org.jboss.ws.core.client.RemotingConnectionImpl.invoke
> > > > > > > > (RemotingConnectionImpl.java:190)
> > > > > > > > ... 94 more
> > > > > > > > Caused by: org.jboss.ws.WSException: Invalid HTTP server 
> > > > > > > > response
> > > > > > > > [502] - Bad Gateway
> > > > > > > > at org.jboss.ws.core.soap.SOAPMessag

AdWords API Re: Too many targeted locations In Campaign Update

2009-11-04 Thread bemahesh
I have specified two countries US and Canada.  Are those included as
well?  If yes, what other things should I keep in mind other than
cities and countries.

Thanks for the quick response.

On Nov 4, 5:13 pm, AdWords API Advisor 
wrote:
> Hi,
>
> Please be advised that there is a limit of 300 total targets, not just
> city targets.  Can you confirm that there are no other geo targets on
> that campaign?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Nov 4, 3:28 pm, bemahesh  wrote:
>
>
>
> > On Nov 4, 3:26 pm, bemahesh  wrote:
>
> > > 
> > > Hi,
>
> > > I have an exiting campaign which I am trying to update using campaign
> > > adwords api.  I am trying to set the campaign geotargeting cities to
> > > 300 cities and update the campaign.  I am getting this on update
> > > setting too many targeted locations (i.e 300 cities).  I had read on
> > > the documentation that one can set max of 300 targeted locations.
>
> > > I would appreciate if someone can shed some light.  Here is the fault
> > > message returned by the api.
>
> > >  https://adwords.google.com/api/adwords/v13";>
> > >        122
>
> > >        One or more input elements failed validation. > > ns1:message>
>
> > >        
> > >         0
>
> > >         geoTargeting
>
> > >         29
>
> > >         false
>
> > >         Too many targeted locations.
>
> > >      
>
> > >     
>
> > >    - Hide quoted text -
>
> - Show quoted text -

--

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-...@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.




AdWords API Re: Error while calling updateCriteria

2009-11-04 Thread AdWords API Advisor
Hi Hari,

Thank you for the extra information.  I'll update this thread when I
have more information on the status of this issue.

Best,
- Eric

On Nov 4, 5:33 pm, SEM  wrote:
> Hi Eric,
>
> this seems to be a non-existent campaign with campaign_id 16388288.
> This campaign does not show up in the
> campaignService.getAllAdWordsCampaigns call. But when i try to get the
> structureReport for the Adgroup and Keywords for the account this
> campaign shows up. I have pasted the xml from the Adgroup report for
> your reference.
>
>  adgroup="Handbags" adGroupMaxCpc="0" adGroupMaxCpm="0"
> adGroupMaxContentCpc="0" adGroupSiteMaxCpc="0" adGroupTargetCpa="0"
> agStatus="Paused" campStatus="Paused"> campaign="PPA_Fossil" adgroupid="605283368" adgroup="Free Overnight
> for Father''s Day" adGroupMaxCpc="0" adGroupMaxCpm="0"
> adGroupMaxContentCpc="0" adGroupSiteMaxCpc="0" adGroupTargetCpa="0"
> agStatus="Enabled" campStatus="Paused">
>
> Also, this is happening for at least 2 of our clients. So this is not
> an isolated issue and I don't know how wide spread this issue is.
>
> thanks,
> Hari
>
> On Nov 3, 11:13 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Hari,
>
> > We have seen this behavior with a few other campaigns, and the core
> > engineering team is currently looking into the cause.  Do you have any
> > information about what type of campaign this is, when it was created,
> > etc?
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Nov 2, 8:46 pm, SEM  wrote:
>
> > > Hi,
>
> > > I am getting the following error when I try toupdateCriteria.
>
> > > AxisFault
> > >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > > Server.userException
> > >  faultSubcode:
> > >  faultString: One or more input elements failed validation.
> > >  faultActor:
> > >  faultNode:
> > >  faultDetail:
> > >         {https://adwords.google.com/api/adwords/v13}fault:
> > >        122
>
> > >        One or more input elements failed validation. > > ns1:message>
>
> > >        
> > >         42
>
> > >         16388288
>
> > >         4
>
> > >         false
>
> > >         The API does not support this type of campaign. > > ns1:detail>
>
> > >      
>
> > >        
> > >         43
>
> > >         16388288
>
> > >         4
>
> > >         false
>
> > >         The API does not support this type of campaign. > > ns1:detail>
>
> > >      
>
> > > Can you shed some light on what this error means and if this is an API
> > > Error which can be obtained from APIException or some other type of
> > > error. How can we fix this error?
>
> > > thanks,
> > > Hari

--

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-...@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.




AdWords API Re: Error while calling updateCriteria

2009-11-04 Thread SEM
Hi Eric,

this seems to be a non-existent campaign with campaign_id 16388288.
This campaign does not show up in the
campaignService.getAllAdWordsCampaigns call. But when i try to get the
structureReport for the Adgroup and Keywords for the account this
campaign shows up. I have pasted the xml from the Adgroup report for
your reference.



Also, this is happening for at least 2 of our clients. So this is not
an isolated issue and I don't know how wide spread this issue is.

thanks,
Hari

On Nov 3, 11:13 am, AdWords API Advisor 
wrote:
> Hi Hari,
>
> We have seen this behavior with a few other campaigns, and the core
> engineering team is currently looking into the cause.  Do you have any
> information about what type of campaign this is, when it was created,
> etc?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Nov 2, 8:46 pm, SEM  wrote:
>
> > Hi,
>
> > I am getting the following error when I try toupdateCriteria.
>
> > AxisFault
> >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > Server.userException
> >  faultSubcode:
> >  faultString: One or more input elements failed validation.
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >         {https://adwords.google.com/api/adwords/v13}fault:
> >        122
>
> >        One or more input elements failed validation. > ns1:message>
>
> >        
> >         42
>
> >         16388288
>
> >         4
>
> >         false
>
> >         The API does not support this type of campaign. > ns1:detail>
>
> >      
>
> >        
> >         43
>
> >         16388288
>
> >         4
>
> >         false
>
> >         The API does not support this type of campaign. > ns1:detail>
>
> >      
>
> > Can you shed some light on what this error means and if this is an API
> > Error which can be obtained from APIException or some other type of
> > error. How can we fix this error?
>
> > thanks,
> > Hari

--

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-...@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.




AdWords API Re: Too many targeted locations In Campaign Update

2009-11-04 Thread AdWords API Advisor
Hi,

Please be advised that there is a limit of 300 total targets, not just
city targets.  Can you confirm that there are no other geo targets on
that campaign?

Best,
- Eric Koleda, AdWords API Team

On Nov 4, 3:28 pm, bemahesh  wrote:
> On Nov 4, 3:26 pm, bemahesh  wrote:
>
>
>
> > 
> > Hi,
>
> > I have an exiting campaign which I am trying to update using campaign
> > adwords api.  I am trying to set the campaign geotargeting cities to
> > 300 cities and update the campaign.  I am getting this on update
> > setting too many targeted locations (i.e 300 cities).  I had read on
> > the documentation that one can set max of 300 targeted locations.
>
> > I would appreciate if someone can shed some light.  Here is the fault
> > message returned by the api.
>
> >  https://adwords.google.com/api/adwords/v13";>
> >        122
>
> >        One or more input elements failed validation. > ns1:message>
>
> >        
> >         0
>
> >         geoTargeting
>
> >         29
>
> >         false
>
> >         Too many targeted locations.
>
> >      
>
> >     
>
> >    

--

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-...@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.




AdWords API Re: Too many targeted locations In Campaign Update

2009-11-04 Thread bemahesh


On Nov 4, 3:26 pm, bemahesh  wrote:
> 
> Hi,
>
> I have an exiting campaign which I am trying to update using campaign
> adwords api.  I am trying to set the campaign geotargeting cities to
> 300 cities and update the campaign.  I am getting this on update
> setting too many targeted locations (i.e 300 cities).  I had read on
> the documentation that one can set max of 300 targeted locations.
>
> I would appreciate if someone can shed some light.  Here is the fault
> message returned by the api.
>
>  https://adwords.google.com/api/adwords/v13";>
>        122
>
>        One or more input elements failed validation. ns1:message>
>
>        
>         0
>
>         geoTargeting
>
>         29
>
>         false
>
>         Too many targeted locations.
>
>      
>
>     
>
>    

--

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-...@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.




AdWords API Too many targeted locations In Campaign Upate

2009-11-04 Thread bemahesh

Hi,

I have an exiting campaign which I am trying to update using campaign
adwords api.  I am trying to set the campaign geotargeting cities to
300 cities and update the campaign.  I am getting this on update
setting too many targeted locations (i.e 300 cities).  I had read on
the documentation that one can set max of 300 targeted locations.

I would appreciate if someone can shed some light.  Here is the fault
message returned by the api.

 https://adwords.google.com/api/adwords/v13";>
   122

   One or more input elements failed validation.

   
0

geoTargeting

29

false

Too many targeted locations.

 



   

--

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-...@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.




AdWords API Re: AdScheduleStatus in v2009

2009-11-04 Thread AdWords API Advisor
Hi Ursula,

Unfortunately this is not possible via the v2009 API.  Just like the
new AdWords web interface, an ad schedule is either set or not set,
and there is no enabled/disabled status.

Best,
- Eric Koleda, AdWords API Team

On Nov 4, 12:27 pm, Ursula  wrote:
> In v13 the AdSchedule class has a  status property of type
> AdScheduleStatus with possible values of : Disabled, Enabled.  In
> v2009 AdScheduleTarget object does not have this property.  How do I
> enable or disable an AdScheduleTarget in the new api?
>
> Thanks,
> Ursula Kellmann

--

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-...@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.




AdWords API Re: Determine if a keyword is using default bid in structure report

2009-11-04 Thread AdWords API Advisor
Hi Magnus,

Although it's not a perfect solution, you could include the column
adGroupMaxCpc, and if it is the same as maxCpc then the keyword is
likely inheriting the value from the ad group.

Best,
- Eric Koleda, AdWords API Team

On Nov 4, 12:04 pm, Magnus  wrote:
> Hi,
>
> When I download a structure report for keywords I can see the bid as
> maxCpc. However, if the bid for the keyword is not set I see the bid
> from the adgroup. Is there any way to determine if the bid is actually
> set on the keyword or on the adgroup?
>
> Thanks
> Magnus

--

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-...@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.




AdWords API AdScheduleStatus in v2009

2009-11-04 Thread Ursula
In v13 the AdSchedule class has a  status property of type
AdScheduleStatus with possible values of : Disabled, Enabled.  In
v2009 AdScheduleTarget object does not have this property.  How do I
enable or disable an AdScheduleTarget in the new api?

Thanks,
Ursula Kellmann

--

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-...@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.




AdWords API Determine if a keyword is using default bid in structure report

2009-11-04 Thread Magnus
Hi,

When I download a structure report for keywords I can see the bid as
maxCpc. However, if the bid for the keyword is not set I see the bid
from the adgroup. Is there any way to determine if the bid is actually
set on the keyword or on the adgroup?

Thanks
Magnus

--

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-...@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.




AdWords API Re: To many connection failures

2009-11-04 Thread AdWords API Advisor
Hi Santhosh,

I was able to make that request without receiving 502 errors.  Do you
find that the errors are limited to certain ad groups?  I've noticed
that this account is very large, and it could be that for some ad
groups the results may be too large to be returned in a single
response.  One of the nice features about the v2009 API is the ability
to specify paging, so large requests can be broken into smaller ones:
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.AdGroupCriterionSelector.html#paging.

Best,
- Eric

On Nov 3, 5:43 pm, Santhosh Nair  wrote:
> Hi Eric,
>  Here is a sample API  call that Failed.  We didn't get any response
> back apart from the  "Bad Gateway/502" error.
> As I mentioned, we keep trying  even after the failure and it may work
> for a while.  We were not able to download the entire campaign data
> yet.  Please let me know if this help  you identify the problem.
> thanks
> Santhosh
> -
> 
>  
>   XXX
>   xxx
>   xxx
>   xxx G:email>
>   xxx
>  
>  
>   
>    1241093xxx
>   
>  
> 
>
> On Nov 3, 9:08 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Santhosh,
>
> > The account appears to be in good standing, and I was able to make
> > some requests against it without a problem.  Can you please provide
> > the SOAP XML for a specific request which fails?
>
> > Best,
> > - Eric
>
> > On Oct 29, 7:38 pm, Santhosh Nair  wrote:
>
> > > Hi Eric,
> > >     I emailed the customer id
>
> > > thanks,
> > > Santhosh
>
> > > On Oct 29, 7:21 am, AdWords API Advisor 
> > > wrote:
>
> > > > Hi Santhosh,
>
> > > > In order to further troubleshoot the problem I will need to get the
> > > > customer ID for this account.  Please don't post it to the forum, but
> > > > instead email me the information at adwordsapiadvi...@google.com.
>
> > > > Best,
> > > > - Eric
>
> > > > On Oct 28, 6:28 pm, Santhosh Nair  wrote:
>
> > > > > Thanks Eric.  It looks like the error occours randomly (on this
> > > > > particular account) . API returned these errors while  retrieving list
> > > > > of Keywords as well as Ads.
> > > > > This error is easily reproducible on this account. It is been 5 days
> > > > > since we tried to download campaign data, it fails even after more
> > > > > than 100 retries.
>
> > > > > regards,
> > > > > Santhosh
>
> > > > > On Oct 28, 7:37 am, AdWords API Advisor 
> > > > > wrote:
>
> > > > > > Hi Santhosh,
>
> > > > > > 502 errors are usually returned when a timeout has occurred between
> > > > > > internal Google servers.  Are you noticing that there certain 
> > > > > > services
> > > > > > or method that are triggering this error?  Is the error consistent 
> > > > > > or
> > > > > > reproducible?
>
> > > > > > Best,
> > > > > > - Eric
>
> > > > > > On Oct 27, 8:22 pm, Santhosh Nair  wrote:
>
> > > > > > > Hello Eric,
> > > > > > >    Thank you for you response. We do not experience any network 
> > > > > > > issues
> > > > > > > and in fact  API access to all other accounts (to other seach 
> > > > > > > engines
> > > > > > >too) works with out errors.
> > > > > > > Here is the stack trace from last exception. Please let's know 
> > > > > > > whether
> > > > > > > some particular  accounts may experienceconnectionissues at this
> > > > > > > moment.
>
> > > > > > > org.jboss.remoting.CannotConnectException: Can not connect http 
> > > > > > > client
> > > > > > > invoker. Invalid HTTP server response
> > > > > > > [502] - Bad Gateway. Response: Bad Gateway/502.
> > > > > > > at
> > > > > > > org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection
> > > > > > > (HTTPClientInvoker.java:368)
> > > > > > > at org.jboss.remoting.transport.http.HTTPClientInvoker.transport
> > > > > > > (HTTPClientInvoker.java:148)
> > > > > > > at org.jboss.remoting.MicroRemoteClientInvoker.invoke
> > > > > > > (MicroRemoteClientInvoker.java:141)
> > > > > > > at org.jboss.remoting.Client.invoke(Client.java:1858)
> > > > > > > at org.jboss.remoting.Client.invoke(Client.java:718)
> > > > > > > at org.jboss.ws.core.client.RemotingConnectionImpl.invoke
> > > > > > > (RemotingConnectionImpl.java:190)
> > > > > > > ... 94 more
> > > > > > > Caused by: org.jboss.ws.WSException: Invalid HTTP server response
> > > > > > > [502] - Bad Gateway
> > > > > > > at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read
> > > > > > > (SOAPMessageUnMarshaller.java:77)
> > > > > > > at 
> > > > > > > org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse
> > > > > > > (HTTPClientInvoker.java:548)
> > > > > > > at
> > > > > > > org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection
> > > > > > > (HTTPClientInvoker.java:322)
> > > > > > > ... 99 more
>
> > > > > > > thanks,
> > > > > > > Santhosh

--

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-...@googlegroups.com.
To unsubscribe from this group, send email to 
adwords-api+unsubs

AdWords API Re: Possible values for TargetList targetListType

2009-11-04 Thread AdWords API Advisor
Hi Ursula,

I apologize for not making this clear earlier, but the string value is
the name of the subclass.

  
AdScheduleTarget
MONDAY
0
ZERO
0
THIRTY
1.0
  

Best,
- Eric

On Nov 4, 9:26 am, Ursula  wrote:
> Hi,
>
> I wanted to know what the possible string values are for the property
> TargetList.Type.  I don't want to loop through the results and have
> to  do an "instance of" on each item.  I would prefer to check that
> string.     Can you provide me with the string values?
>
> Thanks,
> Ursula Kellmann
>
> On Nov 3, 2:24 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Ursula,
>
> > Unfortunately it isn't possible to limit the results to select types
> > of targets, all targets types are returned.  The value of
> > targetListType is one of the subtypes, such as "AdScheduleTargetList",
> > etc.  The full list is shown in the
> > Inheritance" box on this 
> > page:http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Nov 3, 11:34 am, Ursula  wrote:
>
> > >  I have a question about how the CampaignTargetService works.   I’m
> > > looking for a way to filter for only a certain type of Campaign
> > > target.  I only see a way to get all targets for a particular
> > > campaignID using the CampaignTargetSelector.   Is there a way to just
> > > get one targetType?   Also, can you provide me with the possible
> > > values for the   String property  targetListType   of the Target List
> > > object please?  I can’t seem to find them in the docs.
>
> > > Thanks,
> > > Ursula Kellmann

--

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-...@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.




AdWords API Re: Campaigns Assigned Long Id Rather Than Int

2009-11-04 Thread AdWords API Advisor
Hi Pete,

I've done a search through the logs, and I can't find any instance
where that ID was returned.  Perhaps that ID was pulled from the
AdWords web interface URL, which is not necessarily a reliable source
for obtaining IDs.  I would recommend using the API to get all your
campaigns and then looking through the results to find the correct ID
for the campaign.

Best,
- Eric

On Nov 3, 9:02 pm, "Pete Lavetsky (AdWords API Guru)"
 wrote:
> No, we do not log that enormous amount of XML unless we have an error
> we can reproduce
>
> Pete
>
> On Nov 3, 5:02 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Pete,
>
> > Do you have the SOAP XML request and response that shows this ID being
> > returned?
>
> > Best,
> > - Eric
>
> > On Nov 3, 4:00 pm, "Pete Lavetsky (AdWords API Guru)"
>
> >  wrote:
> > > It's the ID that was returned to us on addition through the API and
> > > it's a parameter value seen in the browser when using the Adwords API
> > > center to browse the campaign ... maybe ?c=3437766218, I don't recall
> > > at the moment ... if the incorrect value was returned to us, I at
> > > least need to know what the correct ID of this campaign is, as
> > > currently we have no way of interacting with it through the API
>
> > > More account details can be provided if you'd like to take discussion
> > > off list.
>
> > > Pete
>
> > > On Nov 3, 3:34 pm, AdWords API Advisor 
> > > wrote:
>
> > > > Hi Pete,
>
> > > > I'm not able to find a campaign in the AdWords system with this ID.
> > > > Are you sure this is the correct value?
>
> > > > Best,
> > > > - Eric
>
> > > > On Nov 3, 2:50 pm, "Pete Lavetsky (AdWords API Guru)"
>
> > > >  wrote:
> > > > > The value that was returned to us was 3437766218, which is larger than
> > > > > an int
>
> > > > > Pete
>
> > > > > On Nov 3, 1:32 pm, AdWords API Advisor 
> > > > > wrote:
>
> > > > > > Hi Pete,
>
> > > > > > Although the data type for a campaign ID is now a long in v2009, the
> > > > > > numbers returned should still be in the int range.  That is, you
> > > > > > should be able to convert the long to an int safely.  In the future
> > > > > > the IDs may be larger than ints, but not until v13 is sunset.
>
> > > > > > Best,
> > > > > > - Eric Koleda, AdWords API Team
>
> > > > > > On Nov 2, 3:06 pm, "Pete Lavetsky (AdWords API Guru)"
>
> > > > > >  wrote:
> > > > > > > We recently came across an issue where a Campaign created through 
> > > > > > > the
> > > > > > > API was given an Id that needed a primitive type of long rather 
> > > > > > > than
> > > > > > > int ( we're using the Java library ).   We're currently using the 
> > > > > > > v13
> > > > > > > library and noticed that in the v2009 library the id field of 
> > > > > > > Campaign
> > > > > > > is of type long rather than int.
>
> > > > > > > package com.google.api.adwords.v13;
>
> > > > > > > public class Campaign  implements java.io.Serializable{
> > > > > > >         private int id;
>
> > > > > > > package com.google.api.adwords.v200909.cm;
>
> > > > > > > public class Campaign  implements java.io.Serializable{
> > > > > > >     private java.lang.Long id;
>
> > > > > > > There's currently no way to use the v13 library and retrieve 
> > > > > > > Campaign
> > > > > > > info if the id is a long:
>
> > > > > > > public interface CampaignInterface extends java.rmi.Remote {
> > > > > > >         com.google.api.adwords.v13.reseller.Campaign 
> > > > > > > getCampaign(int i)
> > > > > > > throws java.rmi.RemoteException,
> > > > > > > com.google.api.adwords.v13.reseller.ApiException;
>
> > > > > > > Was the Id we were given a mistake?  If not, what route do I take 
> > > > > > > to
> > > > > > > work with this Campaign.  Using v2009 at this point is not an 
> > > > > > > option.
> > > > > > > v13 documentation still states that you get a Campaign by passing 
> > > > > > > an
> > > > > > > int parameter
>
> > > > > > >http://code.google.com/apis/adwords/docs/developer/CampaignService.ht...
>
> > > > > > > Pete

--

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-...@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.




AdWords API Re: Possible values for TargetList targetListType

2009-11-04 Thread Ursula
Hi,

I wanted to know what the possible string values are for the property
TargetList.Type.  I don't want to loop through the results and have
to  do an "instance of" on each item.  I would prefer to check that
string. Can you provide me with the string values?

Thanks,
Ursula Kellmann

On Nov 3, 2:24 pm, AdWords API Advisor 
wrote:
> Hi Ursula,
>
> Unfortunately it isn't possible to limit the results to select types
> of targets, all targets types are returned.  The value of
> targetListType is one of the subtypes, such as "AdScheduleTargetList",
> etc.  The full list is shown in the
> Inheritance" box on this 
> page:http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Nov 3, 11:34 am, Ursula  wrote:
>
> >  I have a question about how the CampaignTargetService works.   I’m
> > looking for a way to filter for only a certain type of Campaign
> > target.  I only see a way to get all targets for a particular
> > campaignID using the CampaignTargetSelector.   Is there a way to just
> > get one targetType?   Also, can you provide me with the possible
> > values for the   String property  targetListType   of the Target List
> > object please?  I can’t seem to find them in the docs.
>
> > Thanks,
> > Ursula Kellmann

--

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-...@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.