Re: How to convert Google-Ads API GoogleAdsRow to json?

2020-07-17 Thread Thomas Koller
Unfortunately doesn't work in Ads API v4 (beta):

TypeError: Object of type GoogleAdsRow is not JSON serializable


Am Dienstag, 3. Dezember 2019 16:14:26 UTC+1 schrieb Mark Edmondson:
>
> I couldn't get the protobuf to work but using the SOAP seralizer zeep this 
> seems to work:
> https://python-zeep.readthedocs.io/en/latest/helpers.html
>
> from zeep import helpers
>
> def toJSON(x):
> input_dict = helpers.serialize_object(x)
> return json.dumps(input_dict)
>
>
>
>
> On Monday, April 1, 2019 at 9:12:38 PM UTC+2, Alexander Belozerov wrote:
>>
>> Hello there,
>> Im querying google ads api and need to save results as json. What is the 
>> best way to convert GoogleAdsRow type into json?
>>
>>
>> The result of the google ads api call is GoogleAdsRow that looks like 
>> this:
>>
>> campaign {
>>   resource_name: "customers/321/campaigns/123"
>>   id {
>> value: 123
>>   }
>>   name {
>> value: "Campaign Name A"
>>   }
>> }
>> metrics {
>>   clicks {
>> value: 711
>>   }
>>   impressions {
>> value: 2662
>>   }
>> }
>> segments {
>>   device: DESKTOP
>>   ad_network_type: SEARCH
>>   date {
>> value: "2019-03-01"
>>   }
>> }
>>
>> Instead of campaign, it can be adgroup, keywords, etc.
>> What is the best way to convert this kind of data to json?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a47fe08e-ac6c-4a8c-932b-7429507bca6co%40googlegroups.com.


Re: Unified API for TrueView video campaigns

2015-12-10 Thread Thomas Koller


You also get performance values of video campaigns via the 
CAMPAIGN_PERFORMANCE_REPORT (
https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report).
 
The AdvertisingChannelType is “VIDEO”.

Fully tested with AWQL in AdWords Scripts.

 

 

Kind regards

 

Thomas




On Thursday, December 10, 2015 at 4:09:25 PM UTC+1, Anthony Madrigal wrote:
>
> Hi Pete,
>
> Currently, the only support we have for video campaigns in the API is 
> through reporting. We have a new report type called the Video Performance 
> Report 
> 
>  specifically 
> for reporting video campaigns.
>
> Cheers,
> Anthony
> 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1d551ec5-c84b-49c5-bb24-ab610285adb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.