What is difference of MediaFile and Asset?

2019-11-09 Thread Yang Wenjun
Hi Team, I found that MediaFile is very similar with Asset. Also, when I tried to create UAC with Images, I found media_id got before ( uploaded with Adwords API ) is not useful now. Need to use Asset in Google Ads API So my question is: What is the difference when dealing with UAC? Should we

How to get ad group status text?

2019-11-08 Thread Yang Wenjun
Hi Team, I referred to this script: https://github.com/googleads/google-ads-python/blob/master/examples/basic_operations/get_ad_groups.py to get AdGroup data. But I found that all groups' status is 0. results = ga_service.search(customer_id, query=query, page_size=page_size) for row in results

Does api supports video upload now?

2019-11-08 Thread Yang Wenjun
Hi Team, I know it is not possible to upload video in previous version. But after a few months later, is the old Adwords API or the new Google Ads API supports video upload now? Thanks! Wenjun -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsde

How to add headlines for AppAdInfo using python?

2019-11-08 Thread Yang Wenjun
Hi Team, Below is my code for creating AppAdInfo for some AdGroupAd. Currently I stuck at assign headlines values. I tried to search samples but no succeed. #!/usr/bin/env python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th

Is it possible to create uac adgroup with adwords api?

2019-11-07 Thread Yang Wenjun
Hi Team, According to this post: https://groups.google.com/d/msg/adwords-api/CbnlD9nqous/HwP8X2ZJBwAJ It seems it is not possible to create UniversalAppAd in Adwords API. After a few months later, is possible now? If so, do you have sample code for creating UniversalAppAd ? If not, actually I

Re: how to create adgroup for universal app campaign

2019-11-07 Thread Yang Wenjun
Hi Team, Thanks for pointing out this. But do you have any sample code for creating adGroups for UAC ? I have checked this example code: https://github.com/googleads/google-ads-python/blob/master/examples/basic_operations/add_campaigns.py But seems it is not for UAC. Please help with this, thank

Re: Google Ads API seems to return error cost value

2019-08-06 Thread Yang Wenjun
[image: google-ads-cost.png] Sorry, seems picture not uploaded before. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscrib

Google Ads API seems to return error cost value

2019-08-06 Thread Yang Wenjun
Hi Team, Here is the query I use to fetch report: SELECT metrics.clicks, metrics.conversions, metrics.cost_micros, metrics.ctr, metrics.impressions, metrics.cost_per_conversion, customer.id, customer.descriptive_name, segments.date FROM customer WHERE segments

Re: Encounter 500 error

2019-07-23 Thread Yang Wenjun
Hi, I tried and this error occurs occasionally. Thanks! 在 2019年7月24日星期三 UTC+8上午3:10:07,adsapiforumadvisor写道: > > Hi Yang, > > This seems like a temporary error at our end. Could you retry the call and > let me know if it works? > > Cheers > Anash > > ref:_00D1U1174p._5001UEG8zv:ref -- -- =~=

Encounter 500 error

2019-07-23 Thread Yang Wenjun
Hi Team, When I tried to fetch all customer's detail infomation, I encountered "Internal 500 Error" Detail log as below [2019-07-23 15:26:46 - INFO] Request --- Method: /google.ads.googleads.v2.services.GoogleAdsService/Search Host: googleads.googleapis.com:443 Headers: { "developer-token

Does ad_group_ad_asset_view supports UAC ?

2019-07-22 Thread Yang Wenjun
Hi Team, I searched and found that there is a ad_group_ad_asset_view seems could fetch adasset metrics report. I also tried with GAQL. the result is : no error and no data . Not sure why. Please help. Below is the code I used to fetch data. def download_adasset_report(ga_client, customer

Re: How to find functions/methods under certain resource?

2019-07-22 Thread Yang Wenjun
Hi Team, Thanks a lot for your tips, they did helps! Thanks again. Wenjun 在 2019年7月23日星期二 UTC+8上午3:45:19,adsapiforumadvisor写道: > > Hi Yang, > > Thank you for the question! I see you're using Python so I'll give you my > advice from a Python perspective. > > Currently there is not good document

Is it possible to get all accounts' performance report at once?

2019-07-22 Thread Yang Wenjun
Hi Team, Currently, for different account I have to send different queries to fetch report data. Also I am already migrated to Google Ads API Beta. Is it possible to fetch all accounts that under mcc acount report data? Send requests one by one is not efficient I think. Thanks! Wenjun -- -

Re: google ads api : list_accessible_customers only return mcc account

2019-07-22 Thread Yang Wenjun
t.resource_name, customer_client.client_customer, customer_client.level, customer_client.hidden FROM customer_client""" mcc_account_id = "9876543210" page_size = 10 results = ga_service.search(mcc_account_id, query=query, page_size=page_size)for row in results: print(row) 在 20

How to find functions/methods under certain resource?

2019-07-22 Thread Yang Wenjun
Hi Team, I found I lost in the document you provided for new Google Ads API. For example, I know how to get customer detail information, but I know it from your example code as below. def main(client, customer_id): customer_service = client.get_service('CustomerService', version='v2')

Re: google ads api : list_accessible_customers only return mcc account

2019-07-22 Thread Yang Wenjun
Hi Team, So sorry to trouble again. I am using Python. For this requirement, which service I should use? Should I also use "CustomerService" ? Also, how to run the SQL query? Did not found example for this requirement... So sorry for such kind of low quality question~ Thanks! 在 2019年7月1

google ads api : list_accessible_customers only return mcc account

2019-07-16 Thread Yang Wenjun
Hi Team, previous we are using v201809. It works fine. currently, we are moving to new version of Google Ads API , still using python. Now we tried to get all accounts under MCC account. Previous we could get 710 accounts, but now only 1 is retrieved. Very confused. Please help~ Python code