Re: adding mobile image ad to a campaign; several questions

2014-10-20 Thread Danial Klimkin
Hello Berry,


Please send us the full XML response with the error *over email* ("Reply to 
author" button).


-Danial, AdWords API Team.


On Monday, October 20, 2014 2:00:17 PM UTC+4, Berry Tsakala wrote:
>
> 2nd and 3rd problems occured because the campaign was targeted to a 
> different country.
>
> i'm now left only with the *size *problem:
> the file is 8kb but reported as "FILE_TOO_LARGE
>
>
>
> On Sunday, October 19, 2014 10:08:40 PM UTC+3, Berry Tsakala wrote:
>>
>> I found on the web only a single example of using *MobileImageAd 
>> *(duplicated 
>> in several places).
>> The latest version of this example on the web seems to be from 2011 
>>  (e.g. https://searchcode.com/codesearch/view/2598566/)
>>
>> i'm trying to adapt it to version='v201402'   (yes, i know it's 
>> deprecated since last week, I assume the problems are the same)
>>
>>
>> Here's my current code:
>>
>> image = {
>>   'dimensions': [{
>> 'key': 'FULL',
>> 'value': {'width': width, 'height': height }
>>   }],
>>   'name': 'sample.jpg',
>>   'data': base64.encodestring( Utils.ReadFile(image_file) )
>> }
>> operations = [{
>>   'operator': 'ADD',
>>   'operand': {
>> 'xsi_type': 'AdGroupAd',
>> 'adGroupId': adgroup_id,
>> 'ad': {
>>   'xsi_type': 'MobileImageAd',
>>   'markupLanguages': ['HTML'],  # why do I 
>> need it anyway?
>>   'mobileCarriers': ['T-Mobile@US', 'Verizon@US'],
>>   'image': image,
>>   'url': destination_url,
>>   'displayUrl': display_url
>> }
>>   }
>> }]
>>
>>
>>
>>
>>
>> first problem:
>> "ImageError.FILE_TOO_LARGE"-- why? it's only 8k  (attached). 
>>
>>
>> 2nd problem: carriers:
>> AdError.INVALID_MOBILE_CARRIER_TARGET @ 
>> operations[0].operand.ad.mobileCarriers
>> According to the docs, they should be accepted.  This was also the syntax 
>> for the 2011 api-version.  Why not?
>> https://developers.google.com/adwords/api/docs/appendix/mobilecarriers  
>> For now I ended up using "ALLCARRIERS".  But I'd like to target carriers, 
>> too
>>
>> 3rd problem:
>> AdError.INVALID_AD_ADDRESS_CAMPAIGN_TARGET
>> (according to the docs it has nothing to do with "url" and "display_url", 
>> which i won't disclose here, but are perfectly valid URLs in my case) 
>> I do not understand this error
>>
>> https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService?hl=es
>> "INVALID_AD_ADDRESS_CAMPAIGN_TARGETUser cannot create mobile ad for 
>> countries targeted in specified campaign."
>>
>> thank you
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a17af706-8702-4386-9908-6ef3958ce431%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: adding mobile image ad to a campaign; several questions

2014-10-20 Thread Berry Tsakala
2nd and 3rd problems occured because the campaign was targeted to a 
different country.

i'm now left only with the *size *problem:
the file is 8kb but reported as "FILE_TOO_LARGE



On Sunday, October 19, 2014 10:08:40 PM UTC+3, Berry Tsakala wrote:
>
> I found on the web only a single example of using *MobileImageAd *(duplicated 
> in several places).
> The latest version of this example on the web seems to be from 2011  (e.g. 
> https://searchcode.com/codesearch/view/2598566/)
>
> i'm trying to adapt it to version='v201402'   (yes, i know it's deprecated 
> since last week, I assume the problems are the same)
>
>
> Here's my current code:
>
> image = {
>   'dimensions': [{
> 'key': 'FULL',
> 'value': {'width': width, 'height': height }
>   }],
>   'name': 'sample.jpg',
>   'data': base64.encodestring( Utils.ReadFile(image_file) )
> }
> operations = [{
>   'operator': 'ADD',
>   'operand': {
> 'xsi_type': 'AdGroupAd',
> 'adGroupId': adgroup_id,
> 'ad': {
>   'xsi_type': 'MobileImageAd',
>   'markupLanguages': ['HTML'],  # why do I 
> need it anyway?
>   'mobileCarriers': ['T-Mobile@US', 'Verizon@US'],
>   'image': image,
>   'url': destination_url,
>   'displayUrl': display_url
> }
>   }
> }]
>
>
>
>
>
> first problem:
> "ImageError.FILE_TOO_LARGE"-- why? it's only 8k  (attached). 
>
>
> 2nd problem: carriers:
> AdError.INVALID_MOBILE_CARRIER_TARGET @ 
> operations[0].operand.ad.mobileCarriers
> According to the docs, they should be accepted.  This was also the syntax 
> for the 2011 api-version.  Why not?
> https://developers.google.com/adwords/api/docs/appendix/mobilecarriers  
> For now I ended up using "ALLCARRIERS".  But I'd like to target carriers, 
> too
>
> 3rd problem:
> AdError.INVALID_AD_ADDRESS_CAMPAIGN_TARGET
> (according to the docs it has nothing to do with "url" and "display_url", 
> which i won't disclose here, but are perfectly valid URLs in my case) 
> I do not understand this error
>
> https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService?hl=es
> "INVALID_AD_ADDRESS_CAMPAIGN_TARGETUser cannot create mobile ad for 
> countries targeted in specified campaign."
>
> thank you
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0e475699-fc2c-4833-850a-ae25cef05836%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


adding mobile image ad to a campaign; several questions

2014-10-19 Thread Berry Tsakala
I found on the web only a single example of using *MobileImageAd *(duplicated 
in several places).
The latest version of this example on the web seems to be from 2011  (e.g. 
https://searchcode.com/codesearch/view/2598566/)

i'm trying to adapt it to version='v201402'   (yes, i know it's deprecated 
since last week, I assume the problems are the same)


Here's my current code:

image = {
  'dimensions': [{
'key': 'FULL',
'value': {'width': width, 'height': height }
  }],
  'name': 'sample.jpg',
  'data': base64.encodestring( Utils.ReadFile(image_file) )
}
operations = [{
  'operator': 'ADD',
  'operand': {
'xsi_type': 'AdGroupAd',
'adGroupId': adgroup_id,
'ad': {
  'xsi_type': 'MobileImageAd',
  'markupLanguages': ['HTML'],  # why do I need 
it anyway?
  'mobileCarriers': ['T-Mobile@US', 'Verizon@US'],
  'image': image,
  'url': destination_url,
  'displayUrl': display_url
}
  }
}]





first problem:
"ImageError.FILE_TOO_LARGE"-- why? it's only 8k  (attached). 


2nd problem: carriers:
AdError.INVALID_MOBILE_CARRIER_TARGET @ 
operations[0].operand.ad.mobileCarriers
According to the docs, they should be accepted.  This was also the syntax 
for the 2011 api-version.  Why not?
https://developers.google.com/adwords/api/docs/appendix/mobilecarriers  
For now I ended up using "ALLCARRIERS".  But I'd like to target carriers, 
too

3rd problem:
AdError.INVALID_AD_ADDRESS_CAMPAIGN_TARGET
(according to the docs it has nothing to do with "url" and "display_url", 
which i won't disclose here, but are perfectly valid URLs in my case) 
I do not understand this error
https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService?hl=es
"INVALID_AD_ADDRESS_CAMPAIGN_TARGETUser cannot create mobile ad for 
countries targeted in specified campaign."

thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f7bf8910-7521-408d-8926-f6bbceef9986%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.