generateForecastCurve empty response

2022-09-08 Thread panu.kuu...@hopkins.fi
Hi,

why does the following return empty?

POST to
https://googleads.googleapis.com/v10/customers/00/keywordPlans/0:generateForecastCurve

I am using the customer id directly (not mcc id). I dont get an error but 
the request doesn't return anything. 

Thanks for the help. 

Best
Panu

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/4fdf46dc-3e28-40a0-99f5-be1e5dfda49en%40googlegroups.com.


Re: Assignment not allowed to repeated field "conversions" in protocol message object

2022-01-12 Thread panu.kuu...@hopkins.fi
Solution:

request.conversions.append(click_conversion)
request.partial_failure = True
conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=request,
)
)
request.conversions[:0]

On Thursday, January 6, 2022 at 6:14:40 PM UTC panu.kuu...@hopkins.fi wrote:

> The code sample in 
> https://developers.google.com/google-ads/api/docs/conversions/upload-clicks?hl=en#python
>  
> seems to have an issue. 
>
> This line request.conversions = [click_conversion] returns an error:
>
> AttributeError: Assignment not allowed to repeated field "conversions" in 
> protocol message object.
>
> My click_conversions looks like: 
>
> gclid: 
> "Cj0KCQiAw9qOBhC-ARIsAG-rdn7H0PLLPzj19IIWAKcoYz63zoYwV4Ca-_82RkyvIVAVPSGTHvHpnAIaAi5_EALw_wcB"
> conversion_action: "customers/0/conversionActions/00"
> conversion_date_time: "2022-01-06 19:30:06+02:00"
> conversion_value: 1.28
> currency_code: "USD"
> custom_variables {
>   conversion_custom_variable: "type"
>   value: "purchase"
> }
>
> I suppose one is not allowed to assign to repeated fields but I don't see 
> how to proceed. I think appending with 
> request.conversions.append(click_conversion) creates a malformed request.
>
> Anyone got a clue on how to get this to work?
>
> Thank you for your help
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/0b7a8da9-3ea3-49a2-b221-2aef1a3b1aben%40googlegroups.com.


Re: Upload Click Conversions: Assignment not allowed to repeated field "conversions" in protocol message object.

2022-01-12 Thread panu.kuu...@hopkins.fi
Solution:

request.conversions.append(click_conversion)
request.partial_failure = True
conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=request,
)
)
request.conversions[:0]

On Tuesday, January 11, 2022 at 1:57:29 PM UTC panu.kuu...@hopkins.fi wrote:

> Thanks will do. 
>
> On Friday, January 7, 2022 at 3:03:47 AM UTC adsapi wrote:
>
>> Hi Panu,
>>
>> Thank you for sharing the details privately.
>>
>> Upon checking, the error appears to be more related to the client 
>> library. That said, I would recommend that you reach out instead to the 
>> Python client library owners via this link 
>> <https://github.com/googleads/google-ads-python/issues>, as they should 
>> be more equipped to provide guidance on this issue.
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence Napa Oliquino 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2UhGsY: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 
"Google Ads API and AdWords 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/3a8b77ea-d87c-4946-99cd-172c22088c01n%40googlegroups.com.


Re: Upload Click Conversions: Assignment not allowed to repeated field "conversions" in protocol message object.

2022-01-11 Thread panu.kuu...@hopkins.fi
Thanks will do. 

On Friday, January 7, 2022 at 3:03:47 AM UTC adsapi wrote:

> Hi Panu,
>
> Thank you for sharing the details privately.
>
> Upon checking, the error appears to be more related to the client library. 
> That said, I would recommend that you reach out instead to the Python 
> client library owners via this link 
> , as they should 
> be more equipped to provide guidance on this issue.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2UhGsY: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 
"Google Ads API and AdWords 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/d5b00d29-a346-4f4f-a5e2-83e12097895dn%40googlegroups.com.


Re: Upload Click Conversions: Assignment not allowed to repeated field "conversions" in protocol message object.

2022-01-06 Thread panu.kuu...@hopkins.fi
Hi Matt,

thanks for reaching out so quickly. I have sent you a private message.

Best
Panu

On Thursday, January 6, 2022 at 10:38:58 PM UTC adsapi wrote:

> Hi Panu,
>
> Thanks for reaching out. Can you please privately reply with your complete 
> request and response logs so that we can take a look at the error? 
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2UhGsY: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/7139568d-d12d-4d78-8095-9a4ea5e4dc02n%40googlegroups.com.


Assignment not allowed to repeated field "conversions" in protocol message object

2022-01-06 Thread panu.kuu...@hopkins.fi
The code sample 
in 
https://developers.google.com/google-ads/api/docs/conversions/upload-clicks?hl=en#python
 
seems to have an issue. 

This line request.conversions = [click_conversion] returns an error:

AttributeError: Assignment not allowed to repeated field "conversions" in 
protocol message object.

My click_conversions looks like: 

gclid: 
"Cj0KCQiAw9qOBhC-ARIsAG-rdn7H0PLLPzj19IIWAKcoYz63zoYwV4Ca-_82RkyvIVAVPSGTHvHpnAIaAi5_EALw_wcB"
conversion_action: "customers/0/conversionActions/00"
conversion_date_time: "2022-01-06 19:30:06+02:00"
conversion_value: 1.28
currency_code: "USD"
custom_variables {
  conversion_custom_variable: "type"
  value: "purchase"
}

I suppose one is not allowed to assign to repeated fields but I don't see 
how to proceed. I think appending with 
request.conversions.append(click_conversion) creates a malformed request.

Anyone got a clue on how to get this to work?

Thank you for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/379fd04d-8c67-4bab-a08e-f461a581c6f1n%40googlegroups.com.


Upload Click Conversions: Assignment not allowed to repeated field "conversions" in protocol message object.

2022-01-06 Thread panu.kuu...@hopkins.fi
Upload Click Conversions 

https://developers.google.com/google-ads/api/docs/conversions/upload-clicks?hl=en#python

The code example in Python seems to have an issue. 

request.conversions = [click_conversion] returns an error:

AttributeError: Assignment not allowed to repeated field "conversions" in 
protocol message object.

If have tried request.conversion.append(click_conversion) but I think that 
leads to a malformed request.

Anyone got any idea how I could get 
request.conversions = [click_conversion]  to work?

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dae4175c-f2d4-48f6-ac5c-f3522712828an%40googlegroups.com.