Re: Unmarshalling Error: For input string -- for CampaignId

2013-05-23 Thread Kevin Winter (AdWords API Team)
Hi Jack,
  The CampaignId must be numerical.  In your ad group structure:

[{'operator': 'ADD', 'operand': {'status': 'ENABLED', 'bids': 
{'keywordMaxCpc': {'amount': {'microAmount': '3'}}, 'xsi_type': 
'ManualCPCAdGroupBids'}, 'name': 'AdGroup: group #11', 
'campaignId': u'** 4432644030202152013'}}]

It appears that campaignId is not solely numerical.  I'd track back and try 
logging the contents of that field at various points in your code to 
discover where it gets changed.

- Kevin Winter
AdWords API Team

On Tuesday, May 21, 2013 2:13:56 PM UTC-4, Jack Roth wrote:

 Hi

 In my program, i'm creating a campagin (successfully).
  xxx = [{ 'operator': 'ADD','operand': { 'campaignId': 
 self.campaign_id, ...

 and later try to create an adgroup:
  yyy = [{ 'operator': 'ADD',   
   'operand': {  'campaignId': self.params['campaign_id'],
   'name': 'AdGroup: %s #%s' % (adgroup, 
 Utils.GetUniqueName()),
  ...
  ad_groups = ad_group_service.Mutate(operations)[0]


 self.campaign_id is always 
 here's yyy contents:
 [{'operator': 'ADD', 'operand': {'status': 'ENABLED', 'bids': 
 {'keywordMaxCpc': {'amount': {'microAmount': '3'}}, 'xsi_type': 
 'ManualCPCAdGroupBids'}, 'name': 'AdGroup: group #11', 
 'campaignId': u' 4432644030202152013'}}]
 (the numbers are being generated on the fly by urils.GetUniqueName)

 this is the error i'm getting in line ad_group_service.Mutate:

 AdWordsApiError: Unmarshalling Error: For input string: i 
 4432644030202152013, 


 What could be the reason?
 How to debug it?




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Unmarshalling Error: For input string -- for CampaignId

2013-05-21 Thread Jack Roth
Hi

In my program, i'm creating a campagin (successfully).
 xxx = [{ 'operator': 'ADD','operand': { 'campaignId': 
self.campaign_id, ...

and later try to create an adgroup:
 yyy = [{ 'operator': 'ADD',   
  'operand': {  'campaignId': self.params['campaign_id'],
  'name': 'AdGroup: %s #%s' % (adgroup, 
Utils.GetUniqueName()),
 ...
 ad_groups = ad_group_service.Mutate(operations)[0]


self.campaign_id is always 
here's yyy contents:
[{'operator': 'ADD', 'operand': {'status': 'ENABLED', 'bids': 
{'keywordMaxCpc': {'amount': {'microAmount': '3'}}, 'xsi_type': 
'ManualCPCAdGroupBids'}, 'name': 'AdGroup: group #11', 
'campaignId': u' 4432644030202152013'}}]
(the numbers are being generated on the fly by urils.GetUniqueName)

this is the error i'm getting in line ad_group_service.Mutate:

AdWordsApiError: Unmarshalling Error: For input string: i 
4432644030202152013, 


What could be the reason?
How to debug it?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.