Hi Yin,

Thanks for the quick response. 

I am creating an image ad using AdGroupAd's setAd method.  This accepts an 
ImageAd .
For the image ad, one the property is media Id.

Here is the Google docs link that I am referring to 
: 
https://developers.google.com/adwords/api/docs/reference/v201509/AdGroupAdService.Image#type

The docs says that reference id is a Read Only media id key. I am setting 
the reference id as media id explicitly.

But now I get RangeError.TOO_LOW when media id < 0

Here is my SOAP error message :

<faultstring>[RangeError.TOO_LOW @ 
operations[2].operand.ad.image.mediaId.id]</faultstring>


Could you please help me fix this issue.

May I create a random number as media Id ? 
Is it wrong to use reference Id ?


Thank you
Sreeprasad


On Tuesday, April 5, 2016 at 2:34:07 PM UTC-4, Yin Niu wrote:
>
> Hi, 
>
> To create an imageAd, you'd need to upload the image  
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201603/misc/UploadImage.java>first
>  
> using MediaService, then use that media id to create an image Ad. I am not 
> quite sure what reference id you are referring to and why it would give you 
> a negative value. 
>
> Thanks,
> Yin, AdWords API Team. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c43db914-90f5-4883-b1b0-b9de0823a2ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to