Re: Creating Responsive display ads with google ads api

2020-01-23 Thread Google Ads API Forum Advisor Prod
Hello Ahmed,

You will be able to create the Responsive display ads using the 
AdGroupAdService and the MutateAdGroupAdsRequest. The parameters that can be 
set for a responsive display ad are listed here.You may refer to the 
AddExpandedTextAds.java code sample as a reference (code samples in other 
languages can be found here). Also, it looks like you are incorrectly 
specifying the headline text value. Could you please verify this on your end 
referring to the below code snippet and let me know if this helps? If the issue 
persists, could you please share the complete request and response logs along 
with the client customer id for further  investigation?

ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1  text"
ad_group_ad.ad.responsive_display_ad.headlines.pinned_field = 
client.get_type('ServedAssetFieldTypeEnum',version='v2').HEADLINE_1

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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/mVrLx0Q4KFNK00Tv-P1zJ3Tz-QZ4lIZxvMRQ%40sfdc.net.


Re: Creating Responsive display ads with google ads api

2020-01-22 Thread Ahmed Ali
Hey guys,

I keep getting the below error when creating headlines & description. 
Although it looks straight forward to me, any idea? Are you facing the same 
issue?

*ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1  
text"*

AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object 
has no attribute 'text'

On Tuesday, May 28, 2019 at 8:24:25 PM UTC+4, adsapiforumadvisor wrote:
>
> Wonderful! Happy to help!
>
> Best,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5001UAqMsW: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/cabbbf3b-5b24-4691-8cf1-16d5f8774549%40googlegroups.com.


Re: Creating Responsive display ads with google ads api

2019-05-28 Thread Google Ads API Forum Advisor Prod
Wonderful! Happy to help!

Best,
Ben, Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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.
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/xHjRl0PS82WC00GHCCtLs2R0GzyRPcdaQZDA%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-28 Thread Vinutha Nayak
Hi  Ben,

I have been finally been able to add  Image.  :) . Thanks a lot !

Thanks and Regards,
Vinutha Nayak


On Tuesday, 28 May 2019 17:25:03 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Vinutha,
>
> Sounds good, thank you for letting me know.
>
> Best,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5001UAqMsW: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.
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/509e409b-5792-4670-bfa8-a1760d2adf19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

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

Sounds good, thank you for letting me know.

Best,
Ben, Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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.
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/SJsuq0PS7QF700kJ8-1cs8RMiA6ENeXD8iKw%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-26 Thread Vinutha Nayak
Hi Ben,

Thanks for the clear explanation .That really helps

I haven't been able to add successfully an image asset yet, but  at least I 
know what needs to be done and why the error . Let me try few things out 
before I get back to you again.


Thanks and Regards,
Vinutha





On Friday, 24 May 2019 22:03:32 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Vinuntha!
>
> Thanks for the question and apologies for the prolonged back and forth.
>
> The asset field on an AdImageAsset 
> 
>  
> is indeed a StringValue so you're setting it correctly in your code 
> snippet. However the string itself is not arbitrary, it must be the 
> resource_name of an existing Asset 
> . Note 
> the statement in the error message: *Resource name 'Landscape Image' is 
> malformed: expected 'customers/{customer_id}/assets/{part_1}'."* And 
> recall that a resource_name is similar to the id of an entity, so you're 
> specifying an individual Asset entity as one of the marketing images on the 
> ad.
>
> You can use the below select statement in search query to find Assets in 
> your account that meet the criteria for marketing_images in a 
> responsive_display_ad. If this query does not return any results you'll 
> need to add images using the AssetService 
> 
> .
>
> Hope that helps!
>
> Best,
> Ben Karl, Google Ads API Team
>
> SELECT
>   asset.resource_name, 
>  
>   asset.image_asset.full_size.height_pixels,   
>  
>   asset.image_asset.full_size.width_pixels,   
>   
>   asset.image_asset.mime_type 
>   
> FROM asset 
>  
> WHERE 
>   
>   asset.image_asset.mime_type IN (IMAGE_JPEG, IMAGE_PNG, IMAGE_GIF) AND   
>   
>   asset.image_asset.full_size.height_pixels >= 314 AND 
>  
>   asset.image_asset.full_size.width_pixels >= 600 
>
> ref:_00D1U1174p._5001UAqMsW: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.
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/e086001e-d7a1-44c9-98f6-4c78f28bbc98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-24 Thread Google Ads API Forum Advisor Prod
Hi Vinuntha!

Thanks for the question and apologies for the prolonged back and forth.

The asset field on an AdImageAsset is indeed a StringValue so you're setting it 
correctly in your code snippet. However the string itself is not arbitrary, it 
must be the resource_name of an existing Asset. Note the statement in the error 
message: Resource name 'Landscape Image' is malformed: expected 
'customers/{customer_id}/assets/{part_1}'." And recall that a resource_name is 
similar to the id of an entity, so you're specifying an individual Asset entity 
as one of the marketing images on the ad.

You can use the below select statement in search query to find Assets in your 
account that meet the criteria for marketing_images in a responsive_display_ad. 
If this query does not return any results you'll need to add images using the 
AssetService.

Hope that helps!

Best,
Ben Karl, Google Ads API Team

SELECT
asset.resource_name,
asset.image_asset.full_size.height_pixels,
asset.image_asset.full_size.width_pixels,
asset.image_asset.mime_type
FROM asset
WHERE
asset.image_asset.mime_type IN (IMAGE_JPEG, IMAGE_PNG, IMAGE_GIF) AND
asset.image_asset.full_size.height_pixels >= 314 AND
asset.image_asset.full_size.width_pixels >= 600
ref:_00D1U1174p._5001UAqMsW: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.
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/xlXSa0PS0ONJ00sYCP5YrRQwG9i5tsJSwvOQ%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-24 Thread Vinutha Nayak
Hi Peter,

As I have told, I have searched everywhere possible and the link that you 
have given me is from AdwordsAPI and I am using googleAds api .. it is 
totally different and cannot be used and referred to as a replacement for 
another. 

I did some more trial and error and I tried this ;

resp_image =  ad_group_ad.ad.responsive_display_ad.marketing_images.add()
resp_image.asset.value = 'Landscape Image'


I am getting  following error with this :


[2019-05-24 12:37:39,834 - WARNING] Request made: ClientCustomerId: , Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v1.services.AdGroupAdService/MutateAdGroupAds, RequestId: 
5EIz_vb9mEhLlTLm0P
HYbQ, IsFault: True, FaultMessage: Resource name 'Landscape Image' is 
malformed: expected 'customers/{customer_id}/assets/{part_1}'.
Request with ID "5EIz_vb9mEhLlTLm0PHYbQ" failed with status "INVALID_ARGUMENT" 
and includes the following errors:
Error with message "Resource name 'Landscape Image' is malformed: 
expected 'customers/{customer_id}/assets/{part_1}'.".
On field: operations
On field: create
On field: ad
On field: responsive_display_ad
On field: marketing_images
On field: asset


If I check the adImageAsset  link 
https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.common#google.ads.googleads.v1.common.AdImageAsset.
  
 It is a StringValue,  but it still  gives the same error. 

Is there anyone who can review the python code and point what's wrong ? 

Thanks and Regards,
Vinutha

On Friday, 24 May 2019 13:35:44 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Vinutha,
>
> My apologies for the inconvenience of having no current guides or examples 
> specific to the Google Ads API. However, you may note that the service 
> names and fields involved in creating the ResponsiveDisplayAd 
> 
>  
> in the Google Ads API is still similar to the ones used in the old AdWords 
> API.
>
> You can refer to this Python example 
> 
>  
> from the old AdWords API and you can use the Google Ads API's 
> AdGroupAdService 
> 
>  
> (MutateAdGroupAds method) and to the ResponsiveAdDisplayInfo 
> 
>  
> object to see which fields you can set.
>
> Feel free to write back if you have any further clarifications.
>
> Thanks and regards,
> Peter
> Google Ads API Team
>
> ref:_00D1U1174p._5001UAqMsW: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.
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/be6e2479-c5f8-4685-b459-550d1bd747ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Creating Responsive display ads with google ads api

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

My apologies for the inconvenience of having no current guides or examples 
specific to the Google Ads API. However, you may note that the service names 
and fields involved in creating the ResponsiveDisplayAd in the Google Ads API 
is still similar to the ones used in the old AdWords API.

You can refer to this Python example from the old AdWords API and you can use 
the Google Ads API's AdGroupAdService (MutateAdGroupAds method) and to the 
ResponsiveAdDisplayInfo object to see which fields you can set.

Feel free to write back if you have any further clarifications.

Thanks and regards,
Peter
Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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.
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/3aAzb0PS015100x9ClvdGqSQW7EeOEiBur8w%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-23 Thread Vinutha Nayak
Hi Dave,  
Sorry, but I don't think that is a suitable response. It is disappointing and 
defeats the very essence of asking something in the forum. 

As I said I have done all the due diligence before asking the question on 
forum. Also it is not a direct one to one replacement that can be done looking 
at expanded text ads.  Considering I have provided the snippet I have tried and 
failed is there no one who can validate and correct it? Only hope asking 
something out here is that there are people in the other end who can advise 
above the docs? 

Hopefully that stands true here. 
Thanks and Regards, 
Vinutha 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b896c84-7c72-4d75-a1f9-c7f86718a71b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

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

Unfortunately, there isn't any sample code that is particular for creating 
responsive display ads yet. As I have said, you may refer to the sample code 
for expanded text ads as it is almost the same with responsive display ads. You 
need only to replace expanded text ads fields with responsive display ads 
fields and you can refer to the documentation to determine which fields are 
required.

Regards,
Dave
Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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.
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/imVP70PRYCTY00ZOquPiCnQ7KMUY3g7M6EVQ%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Re: Creating Responsive display ads with google ads api

2019-05-22 Thread Vinutha Nayak
Hi, 

I have checked the code for creating expanded text ads and also the fields 
to be populated for responsive display ads.  For expanded text ads, mostly 
it is direct assignment for string values.  However,  the parameters are 
totally different when it comes to Responsive display ads. 

Hence my query is specifically on responsive display ads. Could you please 
provide a  code snippet  or direct me to any sample code that has 
particularly responsive display ads. 

I have searched through enough in all ways possible, and I don't see ANY  
help on the same  for python.


Thanks and Regards,
Vinutha

On Thursday, 23 May 2019 09:26:51 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out. Since you want to create a 
> ResponsiveDisplayAds, you may refer this sample code 
> 
>  
> for creating expanded text ads. You just need to replace the 
> expanded_text_ad to responsive_display_ad. Additionally, these are the 
> fields 
> 
>  
> that can be populated with responsive display ad.
>
> Let me know if this helps. Feel free to write back if you have further 
> clarifications.
>
> Regards,
> Dave
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UAqMsW: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.
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/9151c5ac-5ca2-465b-9f41-ae2ccc400502%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Creating Responsive display ads with google ads api

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

Thank you for reaching out. Since you want to create a ResponsiveDisplayAds, 
you may refer this sample code for creating expanded text ads. You just need to 
replace the expanded_text_ad to responsive_display_ad. Additionally, these are 
the fields that can be populated with responsive display ad.

Let me know if this helps. Feel free to write back if you have further 
clarifications.

Regards,
Dave
Google Ads API Team
ref:_00D1U1174p._5001UAqMsW: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.
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/uyrmp0PRXUY90089RzEHANSYejLg5-tW5D1A%40sfdc.net.
For more options, visit https://groups.google.com/d/optout.


Creating Responsive display ads with google ads api

2019-05-22 Thread Vinutha Nayak
Has anyone tried creating ResponsiveDisplayAds with google ads api ?  I am 
using python and having a tough time. There are no samples as well.

I was able to create the adgroup. I am doing the following :


ad_group_ad_service = client.get_service('AdGroupAdService', version='v1')
ad_group_service = client.get_service('AdGroupService', version='v1')

# Create ad group ad.
ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1')
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group.value = ad_group_service.ad_group_path(customer_id, 
adgroup_id)
ad_group_ad.status = client.get_type('AdGroupAdStatusEnum',version='v1').PAUSED



## setting variable values.

ad_group_ad.ad.responsive_display_ad.marketing_images.asset.value = ''
ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1  text"
ad_group_ad.ad.responsive_display_ad.headlines.pinned_field = 
client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_1
ad_group_ad.ad.long_headline.text.value = "long_headline text "
ad_group_ad.ad.long_headline.pinned_field = 
client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_2
ad_group_ad.ad.descriptions.text.value= " Descriptions text "
ad_group_ad.ad.descriptions.pinned_field  = 
client.get_type('ServedAssetFieldTypeEnum', version='v1').DESCRIPTION_1
ad_group_ad.ad.business_name.value= "Buisness name text "



I see the following error :

*ad_group_ad.ad.responsive_display_ad.marketing_images.asset.value = 
'Image Name'*
*AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' 
object has no attribute 'asset'*


I am unable to understand what is going wrong. Can anyone please help ?
Also where do we specify the complete path of the image to  upload it.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f7bc7aec-f9ed-48a0-9281-cdb1c21b4d6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.