RE: Error occurred at MediaFileOperation create

2019-11-04 Thread Google Ads API Forum Advisor Prod
Hi,

I realize it's been a while, but a fix went in to allow uploads of 
DYNAMIC_IMAGE via the API. Please let me know if you encounter any further 
issues with this operation.

Thanks,
Josh, Google Ads API Team
ref:_00D1U1174p._5001UAqxhT:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/roNH50Q0GCE900aQhqKz8zSvKQiGEhWAxEzg%40sfdc.net.


Re: Error occurred at MediaFileOperation create

2019-06-12 Thread Venkat
Thanks for the update.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0d503762-5517-4c11-8e48-38359cf3eeeb%40googlegroups.com.


Re: Error occurred at MediaFileOperation create

2019-06-12 Thread Venkat
Thanks for the update.

On Saturday, May 11, 2019 at 10:38:31 PM UTC+5:30, Venkat wrote:
>
> I tried to make a MediaFile using MediaFileService but failing repeatedly.
>
> media_file_service = client.get_service('MediaFileService', version='v1')
>
> # create media file
> media_file_operation = client.get_type('MediaFileOperation', version='v1')
> media_file = media_file_operation.create
> media_file.name.value = 'Bugs bunny'
> media_file.source_url.value = 'http://cdn.zzz.com'
> media_file.type = client.get_type('MediaTypeEnum', 
> version='v1').DYNAMIC_IMAGE
> media_file.mime_type = client.get_type('MimeTypeEnum', 
> version='v1').IMAGE_GIF
> with open('candy_1.gif', 'rb') as fp:
> data = fp.read()
> media_file.image.data.value = bytes(data)
> try:
> media_file_response = media_file_service.mutate_media_files(
> customer_id, [media_file_operation])
> except GoogleAdsException as ex:
> print('Request with ID "%s" failed with status "%s" and includes the '
>   'following errors:' % (ex.request_id, ex.error.code().name))
> for error in ex.failure.errors:
> print('\tError with message "%s".' % error.message)
> if error.location:
> for field_path_element in error.location.field_path_elements:
> print('\t\tOn field: %s' % field_path_element.field_name)
> sys.exit(1)
>
> Above is the code that I implemented. I did this as mentioned in the 
> documentation. But not sure why this error has occurred.
>
> Request with ID "masked" failed with status "INVALID_ARGUMENT" and includes 
> the following errors:
> Error with message "A required field was not specified or is an empty 
> string.".
>   On field: operations
>
> Above is the error response I got.
>
> Thanks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4a52e718-3339-4462-9cf2-3eebf8c4dddc%40googlegroups.com.


RE: Error occurred at MediaFileOperation create

2019-05-30 Thread Google Ads API Forum Advisor Prod
Hi,

So far I've determined that we don't actually support uploading dynamic images, 
but the Google Ads API does support retrieving dynamic images from an account. 
I have a question out to the team and will update this thread if they provide 
additional information.

Thanks,
Josh, Google Ads API Team
ref:_00D1U1174p._5001UAqxhT:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/nf2VH0PSBRDY00-ELr45NRQWq65dbEyaDnEg%40sfdc.net.


Re: Error occurred at MediaFileOperation create

2019-05-29 Thread Venkat
I didn't get you. can you please keep it in english?

On Saturday, May 11, 2019 at 10:38:31 PM UTC+5:30, Venkat wrote:
>
> I tried to make a MediaFile using MediaFileService but failing repeatedly.
>
> media_file_service = client.get_service('MediaFileService', version='v1')
>
> # create media file
> media_file_operation = client.get_type('MediaFileOperation', version='v1')
> media_file = media_file_operation.create
> media_file.name.value = 'Bugs bunny'
> media_file.source_url.value = 'http://cdn.zzz.com'
> media_file.type = client.get_type('MediaTypeEnum', 
> version='v1').DYNAMIC_IMAGE
> media_file.mime_type = client.get_type('MimeTypeEnum', 
> version='v1').IMAGE_GIF
> with open('candy_1.gif', 'rb') as fp:
> data = fp.read()
> media_file.image.data.value = bytes(data)
> try:
> media_file_response = media_file_service.mutate_media_files(
> customer_id, [media_file_operation])
> except GoogleAdsException as ex:
> print('Request with ID "%s" failed with status "%s" and includes the '
>   'following errors:' % (ex.request_id, ex.error.code().name))
> for error in ex.failure.errors:
> print('\tError with message "%s".' % error.message)
> if error.location:
> for field_path_element in error.location.field_path_elements:
> print('\t\tOn field: %s' % field_path_element.field_name)
> sys.exit(1)
>
> Above is the code that I implemented. I did this as mentioned in the 
> documentation. But not sure why this error has occurred.
>
> Request with ID "masked" failed with status "INVALID_ARGUMENT" and includes 
> the following errors:
> Error with message "A required field was not specified or is an empty 
> string.".
>   On field: operations
>
> Above is the error response I got.
>
> Thanks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/b6b4afac-7fbe-4dff-8b5d-a0080f45ee22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error occurred at MediaFileOperation create

2019-05-29 Thread revarasi Sofa
Service korsi sopa bandung

Pada tanggal Rab, 29 Mei 2019 19.23, Venkat 
menulis:

> Any updates on this?
>
> On Saturday, May 11, 2019 at 10:38:31 PM UTC+5:30, Venkat wrote:
>>
>> I tried to make a MediaFile using MediaFileService but failing
>> repeatedly.
>>
>> media_file_service = client.get_service('MediaFileService', version='v1')
>>
>> # create media file
>> media_file_operation = client.get_type('MediaFileOperation', 
>> version='v1')
>> media_file = media_file_operation.create
>> media_file.name.value = 'Bugs bunny'
>> media_file.source_url.value = 'http://cdn.zzz.com'
>> media_file.type = client.get_type('MediaTypeEnum', 
>> version='v1').DYNAMIC_IMAGE
>> media_file.mime_type = client.get_type('MimeTypeEnum', 
>> version='v1').IMAGE_GIF
>> with open('candy_1.gif', 'rb') as fp:
>> data = fp.read()
>> media_file.image.data.value = bytes(data)
>> try:
>> media_file_response = media_file_service.mutate_media_files(
>> customer_id, [media_file_operation])
>> except GoogleAdsException as ex:
>> print('Request with ID "%s" failed with status "%s" and includes the 
>> '
>>   'following errors:' % (ex.request_id, ex.error.code().name))
>> for error in ex.failure.errors:
>> print('\tError with message "%s".' % error.message)
>> if error.location:
>> for field_path_element in error.location.field_path_elements:
>> print('\t\tOn field: %s' % field_path_element.field_name)
>> sys.exit(1)
>>
>> Above is the code that I implemented. I did this as mentioned in the
>> documentation. But not sure why this error has occurred.
>>
>> Request with ID "masked" failed with status "INVALID_ARGUMENT" and includes 
>> the following errors:
>> Error with message "A required field was not specified or is an empty 
>> string.".
>>  On field: operations
>>
>> Above is the error response I got.
>>
>> Thanks.
>>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog:
> https://googleadsdeveloper.blogspot.com/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API and Google Ads 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 and Google Ads 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/ffd25930-85e4-469a-8dcc-7a3ccf3a9a0f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/CAHekckAn6T1POXhujP4KQCD-HwC%2BbF86doEJ1Yi5sXYSy9%3DA%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error occurred at MediaFileOperation create

2019-05-29 Thread Venkat
Any updates on this?

On Saturday, May 11, 2019 at 10:38:31 PM UTC+5:30, Venkat wrote:
>
> I tried to make a MediaFile using MediaFileService but failing repeatedly.
>
> media_file_service = client.get_service('MediaFileService', version='v1')
>
> # create media file
> media_file_operation = client.get_type('MediaFileOperation', version='v1')
> media_file = media_file_operation.create
> media_file.name.value = 'Bugs bunny'
> media_file.source_url.value = 'http://cdn.zzz.com'
> media_file.type = client.get_type('MediaTypeEnum', 
> version='v1').DYNAMIC_IMAGE
> media_file.mime_type = client.get_type('MimeTypeEnum', 
> version='v1').IMAGE_GIF
> with open('candy_1.gif', 'rb') as fp:
> data = fp.read()
> media_file.image.data.value = bytes(data)
> try:
> media_file_response = media_file_service.mutate_media_files(
> customer_id, [media_file_operation])
> except GoogleAdsException as ex:
> print('Request with ID "%s" failed with status "%s" and includes the '
>   'following errors:' % (ex.request_id, ex.error.code().name))
> for error in ex.failure.errors:
> print('\tError with message "%s".' % error.message)
> if error.location:
> for field_path_element in error.location.field_path_elements:
> print('\t\tOn field: %s' % field_path_element.field_name)
> sys.exit(1)
>
> Above is the code that I implemented. I did this as mentioned in the 
> documentation. But not sure why this error has occurred.
>
> Request with ID "masked" failed with status "INVALID_ARGUMENT" and includes 
> the following errors:
> Error with message "A required field was not specified or is an empty 
> string.".
>   On field: operations
>
> Above is the error response I got.
>
> Thanks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/ffd25930-85e4-469a-8dcc-7a3ccf3a9a0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error occurred at MediaFileOperation create

2019-05-15 Thread Venkat
Thanks Josh, I will be waiting for your update..

On Wednesday, May 15, 2019 at 3:48:08 AM UTC+5:30, 
googleadsapi-forumadvisor wrote:
>
> Hi,
>
> From my investigation so far, it appears that the Google Ads API currently 
> only supports uploads for ICON and IMAGE, not DYNAMIC_IMAGE. However, I'm 
> confirming this with the team and will get back to you with an update.
>
> Thanks,
> Josh, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 05/14/19 05:06:41 venka...@gmail.com  wrote:
>
> Hello,
>
> The above code works with JPEG image but failing with GIF image. I already 
> post the same question at client library, they replied with Unfortunately 
> that appears to be an issue with the API and not the client library, would 
> you please submit your question on the support forum 
> *?. *Please help me 
> with this.
>
> Thanks.
>
> On Tuesday, May 14, 2019 at 3:37:30 AM UTC+5:30, googleadsapi-forumadvisor 
> wrote:
>
> Hello Venkat,
>
> Looks like the Image field is not set to the MediaFile. Could you please 
> follow the code pattern shown here 
> 
>  
> in Java to upload images and the code samples in other languages can be 
> found here . 
> Please let me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog:
> https://googleadsdeveloper.blogspot.com/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>  
> You received this message because you are subscribed to the Google
> Groups "AdWords API and Google Ads 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 and Google Ads 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/1ea73c2e-5392-4b80-9dd5-e2550597b1f8%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/b82f5740-65e1-4531-a244-21b1aa90ed2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Error occurred at MediaFileOperation create

2019-05-14 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hi,

From my investigation so far, it appears that the Google Ads API currently
only supports uploads for ICON and IMAGE, not DYNAMIC_IMAGE. However, I'm
confirming this with the team and will get back to you with an update.

Thanks,
Josh, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/14/19 05:06:41 venkat.ca...@gmail.com wrote:

Hello,

The above code works with JPEG image but failing with GIF image. I already
post the same question at client library, they replied with Unfortunately
that appears to be an issue with the API and not the client library, would
you please submit your question on the support forum
*?. *Please help me
with this.

Thanks.

On Tuesday, May 14, 2019 at 3:37:30 AM UTC+5:30, googleadsapi-forumadvisor
wrote:

Hello Venkat,

Looks like the Image field is not set to the MediaFile. Could you please
follow the code pattern shown here

in Java to upload images and the code samples in other languages can be
found here .
Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey


Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/1ea73c2e-5392-4b80-9dd5-e2550597b1f8%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/ug1g8nk6fc7crg000uckkcx70mj6d1o6so30c1g68r34c1l%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error occurred at MediaFileOperation create

2019-05-14 Thread Venkat
Hello,

The above code works with JPEG image but failing with GIF image. I already 
post the same question at client library, they replied with Unfortunately 
that appears to be an issue with the API and not the client library, would 
you please submit your question on the support forum 
*?. *Please help me 
with this.

Thanks.

On Tuesday, May 14, 2019 at 3:37:30 AM UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hello Venkat,
>
> Looks like the Image field is not set to the MediaFile. Could you please 
> follow the code pattern shown here 
> 
>  
> in Java to upload images and the code samples in other languages can be 
> found here . 
> Please let me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/1ea73c2e-5392-4b80-9dd5-e2550597b1f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Error occurred at MediaFileOperation create

2019-05-13 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Venkat,

Looks like the Image field is not set to the MediaFile. Could you please
follow the code pattern shown here

in Java to upload images and the code samples in other languages can be
found here .
Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/ug1g8nk6fqj6s2000rrpp4w70mj6d1o6so30c1g68r34c1l%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error occurred at MediaFileOperation create

2019-05-11 Thread Venkat


I tried to make a MediaFile using MediaFileService but failing repeatedly.

media_file_service = client.get_service('MediaFileService', version='v1')

# create media file
media_file_operation = client.get_type('MediaFileOperation', version='v1')
media_file = media_file_operation.create
media_file.name.value = 'Bugs bunny'
media_file.source_url.value = 'http://cdn.zzz.com'
media_file.type = client.get_type('MediaTypeEnum', 
version='v1').DYNAMIC_IMAGE
media_file.mime_type = client.get_type('MimeTypeEnum', 
version='v1').IMAGE_GIF
with open('candy_1.gif', 'rb') as fp:
data = fp.read()
media_file.image.data.value = bytes(data)
try:
media_file_response = media_file_service.mutate_media_files(
customer_id, [media_file_operation])
except GoogleAdsException as ex:
print('Request with ID "%s" failed with status "%s" and includes the '
  'following errors:' % (ex.request_id, ex.error.code().name))
for error in ex.failure.errors:
print('\tError with message "%s".' % error.message)
if error.location:
for field_path_element in error.location.field_path_elements:
print('\t\tOn field: %s' % field_path_element.field_name)
sys.exit(1)

Above is the code that I implemented. I did this as mentioned in the 
documentation. But not sure why this error has occurred.

Request with ID "masked" failed with status "INVALID_ARGUMENT" and includes the 
following errors:
Error with message "A required field was not specified or is an empty string.".
On field: operations

Above is the error response I got.

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/c817b2de-29ce-4ef6-be65-a2cca2912739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.