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)
pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
 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)

  pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
   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)

pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
 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)

  pete.lavet...@gmail.com 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: Campaigns Assigned Long Id Rather Than Int

2009-11-03 Thread AdWords API Advisor
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)
pete.lavet...@gmail.com 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: Campaigns Assigned Long Id Rather Than Int

2009-11-03 Thread Pete Lavetsky (AdWords API Guru)
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 adwordsapiadvi...@google.com
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)

 pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
  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)

   pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
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)

 pete.lavet...@gmail.com 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: Campaigns Assigned Long Id Rather Than Int

2009-11-03 Thread AdWords API Advisor
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)
pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
 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)

  pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
   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)

pete.lavet...@gmail.com 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: Campaigns Assigned Long Id Rather Than Int

2009-11-03 Thread Pete Lavetsky (AdWords API Guru)
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 adwordsapiadvi...@google.com
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)

 pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
  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)

   pete.lavet...@gmail.com 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: Campaigns Assigned Long Id Rather Than Int

2009-11-03 Thread AdWords API Advisor
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)
pete.lavet...@gmail.com 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 adwordsapiadvi...@google.com
 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)

  pete.lavet...@gmail.com 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.