RE: Webhooks availability for ads made via Adwords Api

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Ankit,

Thank you for reaching out.

Unfortunately, webhooks are not available in the AdWords API. You can refer to 
this guide on how the AdWords API makes an API call.

Moving on to your other concern regarding real-time updates, you can refer to 
our data freshness guide for more details on when your data will be accurately 
available.

Regards,
Dannison
Google Ads API Team
ref:_00D1U1174p._5001UHHEMk: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/Jw7m00PY2C4600ucMZvT15SgODlaCPL9GCiQ%40sfdc.net.


RE: Batch operations, getting BatchJobProcessingError.INPUT_FILE_CORRUPTION

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Matej,

Thank you for reaching out.

To better assist you, could you confirm if you have retried your request and 
this has occurred consistently? Also, could provide the code segment for your 
BatchJobService implementation so I could better investigate the issue?

Regards,
Dannison
Google Ads API Team
ref:_00D1U1174p._5001UHHEKt: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/WoitT0PY2C0J00bGlMZWk-QgeyZPBXIMsVYQ%40sfdc.net.


Re: How can I get the status of google-ads account (canceled or active)?

2019-09-18 Thread 蓝瀚
Besides, the  customer_manager_link.status 

 it 
self seems to be the status that mean relationship between mcc and account, 
it isn't the canceled or active status (red or green sign at google ads 
manage back system)

So how can I get the status as expected?



adsapiforumadvisor於 2019年9月19日星期四 UTC+8上午2時45分32秒寫道:
>
> Hello,
>
> You can use the customer_manager_link.status 
> 
>  
> to get the status of an account.
>
> Cheers,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UHHArP: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/dfbfe71c-e69e-4743-b216-d499d7a68158%40googlegroups.com.


Re: How can I get the status of google-ads account (canceled or active)?

2019-09-18 Thread 蓝瀚
Hi Anthony, 

Thanks for replying, It seems that I can only get one account's status each 
time, I mean how can I get the status and other info (name, id, currency, 
etc) of all google-ads accounts under my mcc at the same time?

adsapiforumadvisor於 2019年9月19日星期四 UTC+8上午2時45分32秒寫道:
>
> Hello,
>
> You can use the customer_manager_link.status 
> 
>  
> to get the status of an account.
>
> Cheers,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UHHArP: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/8c94041d-8e73-4213-814f-1b1115e897b9%40googlegroups.com.


Re: How can I get the status of google-ads account (canceled or active)?

2019-09-18 Thread 蓝瀚
Hi Anthony, 

Thanks for replying, It seems that I can only get one account's status each 
time, I mean how can I get the status and other info (name, id, currency, 
etc) at the same time? 

adsapiforumadvisor於 2019年9月19日星期四 UTC+8上午2時45分32秒寫道:
>
> Hello,
>
> You can use the customer_manager_link.status 
> 
>  
> to get the status of an account.
>
> Cheers,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UHHArP: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/1e2356fe-1416-4088-b3eb-63a964172afb%40googlegroups.com.


Re: Can I list all google-ads accounts under my google user?

2019-09-18 Thread 蓝瀚
Hi Sai , 

Thanks for your help..



adsapiforumadvisor於 2019年9月19日星期四 UTC+8上午2時31分44秒寫道:
>
> Hello,
>
> The search query should be a single string, when I re-format the query 
> into a single string it is working. I recommend using Interactive Query 
> builder 
> 
>  to 
> build your query for testing. Also, the id 
> 
>  
> and descriptive name 
> 
>  
> fields are made available for client_customer resource as well. Please give 
> it a try and let me know if you are still facing the issue. 
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UHHAmK: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/50ebcce8-e7f9-414e-a03e-4ece1d89b481%40googlegroups.com.


Re: Busted Zipcode Criterion

2019-09-18 Thread ed r
This may be related as it affects the same criteriaID...

the current csv here: 
https://developers.google.com/adwords/api/docs/appendix/geotargeting

gives two CriteriaIDs (9025258,9025266) for the same US Postal Code

Canonical Name '70546,Louisiana,United States'

I'm stripping this from my systems as a duplicate, but perhaps it should 
point to a different postal

On Tuesday, April 25, 2017 at 10:46:16 AM UTC-7, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hi David, 
>
> I tried the location look up for Id=9025258. The results were consistent 
> and I was getting the location with zipcode 70534 from both the API docs 
> and the API. Do you happen to have the SOAP logs which gave you 
> inconsistent results from the API? I would like to investigate that further.
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d588f4b5-00de-46a7-8e4d-103712fd94c9%40googlegroups.com.


Permission denied error on running an example get_campaigns.py after installing Google Ads API with same tokens that were used for Adwords

2019-09-18 Thread Namrata Gandhi

Hi All,

We migrated from Google Adwords to Google Ads API using the installation 
guide. On trying to run a simple get_campaigns.py example from the library, 
I am getting the following error. Please note we used the same client ID, 
developer token, refresh token and client secret that we have been using 
for Adwords


[2019-09-18 14:20:22 - WARNING] Request made: ClientCustomerId: 
599-595-4159, Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v2.services.GoogleAdsService/Search, RequestId: None, 
IsFault: True, FaultMessage: Google Ads API has not been used in project 
865728966170 before or it is disabled. Enable it by visiting 
https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=865728966170
 
then retry. If you enabled this API recently, wait a few minutes for the 
action to propagate to our systems and retry.


Full stack trace



Request

---

Method: /google.ads.googleads.v2.services.GoogleAdsService/Search

Host: googleads.googleapis.com:443

Headers: {

  "developer-token": "REDACTED",

  "x-goog-api-client": "gl-python/2.7.14 grpc/1.23.0 gax/1.14.2 
gapic/3.2.0",

  "x-goog-request-params": "customer_id=599-595-4159"

}

Request: customer_id: "599-595-4159"

query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY 
campaign.id"

page_size: 1000



Response

---

Headers: {

  "google.rpc.help-bin": "\n?\u0001\n(Google developers console API 
activation\u0012ehttps://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=865728966170;,

  "grpc-status-details-bin": "\b\u0007\u0012?\u0002Google Ads API has not 
been used in project 865728966170 before or it is disabled. Enable it by 
visiting 
https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=865728966170
 
then retry. If you enabled this API recently, wait a few minutes for the 
action to propagate to our systems and 
retry.\u001a?\u0001\n#type.googleapis.com/google.rpc.Help\u0012?\u0001\n?\u0001\n(Google
 
developers console API 
activation\u0012ehttps://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=865728966170;

}

Fault: {

  "created": "@1568841622.311250421",

  "description": "Error received from peer 
ipv6:[2401:db00:11ff:ff46:face:b00c:0:1e10]:8080",

  "file": "src/core/lib/surface/call.cc",

  "file_line": 1052,

  "grpc_message": "Google Ads API has not been used in project 865728966170 
before or it is disabled. Enable it by visiting 
https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=865728966170
 
then retry. If you enabled this API recently, wait a few minutes for the 
action to propagate to our systems and retry.",

  "grpc_status": 7

}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b5feff13-8468-488e-9eda-94b6efa0180c%40googlegroups.com.


Google Ads API: Setting user list for adgroup criterion

2019-09-18 Thread Matt Fleming
Hi,

Hope this message finds you well.

I need some help applying user_list criteria to my ad_group. I keep getting 
the error "AttributeError: Assignment not allowed to field "user_list" in 
protocol message object."

def set_targeting(self, client, customer_id, ad_group_id, audience_id):
ad_group_service = client.get_service('AdGroupService', version='v2')
ad_group_criterion_service = client.get_service('AdGroupCriterionService', 
version='v2')
ad_group_criterion_operations = client.get_type('AdGroupCriterionOperation', 
version='v2')

ad_group_criterion = ad_group_criterion_operations.create
ad_group_criterion.ad_group.value = ad_group_service.ad_group_path(
customer_id, ad_group_id)
ad_group_criterion.type = client.get_type('CriterionTypeEnum', version='v2'
).USER_LIST
ad_group_criterion.user_list = audience_id

Any advice would be appreciated.

Thanks!

-Matt

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/427f0375-dc66-4fe7-9f7d-3d1c90fd90cb%40googlegroups.com.


Re: Can't get Campaign Audience bids through API.

2019-09-18 Thread Dariusz Ciemięga
SELECT campaign_criterion.type, campaign_criterion.bid_modifier, 
campaign_criterion.campaign, campaign_criterion.status, 
campaign_audience_view.resource_name FROM campaign_audience_view

also empty :/

On Wednesday, September 18, 2019 at 8:11:04 PM UTC+2, adsapiforumadvisor 
wrote:
>
> Hello Dariusz,
>
> Could you please add the field campaign_audience_view.resource_name 
> 
>  in 
> your GAQL query and try? 
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UHH8G4: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/d0af373c-8f8a-41b7-9c79-d08431ad0f23%40googlegroups.com.


RE: Account timezone

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Marcos,

Thank you for reaching out. Generally, all the reports that are pulled from an 
account will be based on the customer account's time zone. You could query for 
the AccountTimeZone field of the reports to get the timezone value via API. Let 
us know if this helps.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UHHCHY: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/nMCcE0PY1OG300xtxMfqRbTH-fIGNpI6t8JA%40sfdc.net.


RE: Syntax for REGEXP_MATCH

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Deborah,

Can you please send me through reply privately to author the error message you 
are getting? The only valid operators for Google Ads API are the ones listed 
here and it doesn't include REGEXP_MATCH or NOT REGEXP_MATCH.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UHH7Hf: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/GQggo0PY1O32003fOvH1ckToqlJd3t4JkZKA%40sfdc.net.


RE: Not receiving some data fields from Google Ads API Beta v2 Search Queries

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Dylan,

Thank you for reaching out. Please find my response to your queries below.

SELECT bidding_strategy.type, bidding_strategy.name FROM bidding_strategy: The 
query seems to be correct. If you have the bidding strategy set in your 
account, this query will list the name and type of bidding strategy in result. 
Could you please confirm if you have the bidding strategy set in your account 
and let me know if you are still facing issue?

bidding_strategy.type returns no data, when requesting 'FROM campaign' response 
object comes back with other requested data but nothing for Bid Strategy Type: 
Please use campaign.bidding_strategy_type instead to query the bidding strategy 
type for campaigns. Please find below the report query for reference.


'SELECT campaign.id, campaign.name, campaign.bidding_strategy_type FROM 
campaign'

Returns Invalid Argument Error when requesting 'FROM bidding_strategy' look at 
'query2' in code below : This seems to be formatting error and not the report 
query error. Could you please format the query correctly as above and retry 
running the request call?

Language Code : 'SELECT campaign.dynamic_search_ads_setting.language_code FROM 
campaign': The report query is correct and you should get the targeted language 
code for your campaign in below format.
campaign {
dynamic_search_ads_setting {
language_code {
value: "en"
}
}re the client customer id and the dow

Location: SELECT location_view.resource_name FROM location_view: The report 
query looks perfect. Could you please confirm if there are locations in the UI 
for which you are trying to get the details via API? If yes, could you please 
share the client customer id and the downloaded report file for me to 
investigate further?

Active Bid Adjustment: 'SELECT campaign_criterion.bid_modifier FROM 
campaign_criterion': Please make sure you have bid modifier set for the 
campaign criterion in UI for which you are trying to get the data via API?

Custom Parameters: ' SELECT campaign.url_custom_parameters FROM campaign' : 
Could you please confirm if you have custom parameters set at campaign level in 
UI? If not, you will get an empty result when running this report query. Please 
refer to this article to set custom parameters at campaign level. Once you have 
set these parameters, you will get the response in below format.


campaign {
url_custom_parameters {
key {
value: "index"
}
value {
value: "firstPage"
}
}

Negative Keywords returns an empty object from the query below: Could you 
confirm if you have campaign negative keywords added in your account? If not, 
you could add these keywords using this article. Once the negative keywords are 
added in your account, the shared query will return the requested information 
in the below format:

keyword_plan_negative_keyword {
resource_name: "customers/22XX76/keywordPlanNegativeKeywords/13454"
keyword_plan_campaign {
value: "customers/22XX76/keywordPlanCampaigns/1XX2"
}
id {
value: 1354
}
match_type: BROAD
}
Please use Reply privately to author option while sharing the requested details.

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


RE: How can I get the status of google-ads account (canceled or active)?

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello,

You can use the customer_manager_link.status to get the status of an account.

Cheers,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UHHArP: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/Mmpds0PY1IRG00kyTAxKcaS_Oq0qFzzH9_VQ%40sfdc.net.


RE: How to pause and reenable individual products in Shopping campaigns

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Soren,

It is not possible to pause and re-enable the products. Instead you can exclude 
the product criterion and re-add it with positive criterion when the product is 
available. Since negative field of the AdGroupCriterion is immutable to toggle 
this field every time you have to remove the criterion and add it with updated 
negative field value. Note that whenever you add a criterion the criterion id 
will change even when you add the same product. Please let me know if you have 
any further questions.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHHEKe: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/tPpFP0PY1IJZ00wPquYbQuQ3Kr9XakwApmPA%40sfdc.net.


RE: Can I list all google-ads accounts under my google user?

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello,

The search query should be a single string, when I re-format the query into a 
single string it is working. I recommend using Interactive Query builder to 
build your query for testing. Also, the id and descriptive name fields are made 
available for client_customer resource as well. Please give it a try and let me 
know if you are still facing the issue.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHHAmK: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/T9oW60PY1I4H00l8q3vIClQs6hm_sDpljL1w%40sfdc.net.


Re: Can't get Campaign Audience bids through API.

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Dariusz,

Could you please add the field campaign_audience_view.resource_name in your 
GAQL query and try?

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHH8G4: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/SM0xj0PY1H4200RtY84X0hTfOtd8B12FvGHQ%40sfdc.net.


RE: Invalid tocpic path

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Tony,

Looks like the "Apparel & Accessories" topic is not available for targeting 
hence you are facing the INVALID_TOPIC_PATH error. You can go to the account -> 
Topics view from the UI to search for the available topics for targeting. 
Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHH5VB: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/MmbxJ0PY1GE700EPXcl7WfS7mbCUvHfg91Aw%40sfdc.net.


Re: Webhooks availability for ads made via Adwords Api

2019-09-18 Thread Ankit Agarwal
I want to know the real-time updates to my user ad_campaign, ad_groups, and 
ads.

On Wednesday, September 18, 2019 at 10:06:42 PM UTC+5:30, Ankit Agarwal 
wrote:
>
> Are webhooks available for ads made via Google Adwords API? If yes, are 
> these webhooks accessible through Adwords API?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/16c24dc5-6e9c-41be-b9bf-c48a53249b51%40googlegroups.com.


Webhooks availability for ads made via Adwords Api

2019-09-18 Thread Ankit Agarwal
Are webhooks available for ads made via Google Adwords API? If yes, are 
these webhooks accessible through Adwords API?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/01c3adb6-4839-4bd9-925c-b15f1837da8d%40googlegroups.com.


Re: Report accounts

2019-09-18 Thread Ankit Agarwal
Instead of using 'report_utils.*download_report_as_file*(report_definition, 
file_name)'  use 'report_utils.*download_report*(report_definition, 
account_id)', this way you will get the data in response.

On Friday, July 19, 2019 at 3:32:26 PM UTC+5:30, Luis Manuel wrote:
>
> [image: ok.PNG]
> Hi guys,
>
> I'm using the adwords API and I'm downloading the reports correctly, the 
> problem I have is that I need to extract the data but not download it, I 
> have not found in the documentation how to perform this process since all 
> the information that appears is to make the report and download the data.
>
> Thanks for the 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/7446f8b1-d443-4cbb-872a-f4e1615dfbe3%40googlegroups.com.


Google Ads API search queries not returning certain data values

2019-09-18 Thread Dylan McBurnett
Hi,

I'm using the Google Ads API with the Interactive Query Builder along with 
the google-ads-python Github to search for specific data values. I'm 
getting about half the data I'm looking for despite using queries provided 
by the Query Builder .. the queries work for some data values, but not all. 
Any insight into how to search for the missing data would be much 
appreciated.

*Bid Strategy Type* - this field is also not returned when searching 'FROM 
campaign'

queryStrat = ( 'SELECT bidding_strategy.type, bidding_strategy.name '
'FROM bidding_strategy '
'LIMIT 20')


Terminal Output:
Dylan-McBurnetts-MacBook-Pro:basic_operations dylanmcburnett$ 
./get_dylan_data.py -c 4461958680

hello
No handlers could be found for logger "google.ads.google_ads.client"
Why are you so wrong?
Request with ID "DHHKl7dGZ-ACUPdvZPrE5g" failed with status 
"INVALID_ARGUMENT" and includes the following errors:
Error with message "Error in SELECT clause: invalid field name 
'FROM'.".

Code being executed:

from __future__ import absolute_import

import argparse
import six
import sys

import google.ads.google_ads.client


_DEFAULT_PAGE_SIZE = 1000


def main(client, customer_id, page_size):
ga_service = client.get_service('GoogleAdsService', version='v2')

queryStrat = ( 'SELECT bidding_strategy.type, bidding_strategy.name, '
'FROM bidding_strategy '
'LIMIT 20')

results = ga_service.search(customer_id, query=queryStrat, page_size
=page_size)
print str(results)
print 'hello'

try:
for row in results:
print ' ROW DATA'
print str(row)
print('Campaign with ID %d and name/Priority "%s" was found.'
% (row.campaign.id.value, row.campaign.shopping_setting.campaign_priority))
# % (row.campaign.id.value, row.campaign.name.value))
except google.ads.google_ads.errors.GoogleAdsException as ex:
print 'Why are you so wrong?'
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)


if __name__ == '__main__':
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
google_ads_client = (google.ads.google_ads.client.GoogleAdsClient
.load_from_storage())
parser = argparse.ArgumentParser(
description='Lists all campaigns for specified customer.')
# The following argument(s) should be provided to run the example.
parser.add_argument('-c', '--customer_id', type=six.text_type,
required=True, help='The Google Ads customer ID.')
args = parser.parse_args()

main(google_ads_client, args.customer_id, _DEFAULT_PAGE_SIZE)


Running a similar query below fails to return any data for:
- bidding_strategy.type
- language_code
- url_custom_parameters
query2 = ( 'SELECT campaign.id, campaign.name, '
'segments.ad_network_type, segments.device, '
'bidding_strategy.type, campaign.dynamic_search_ads_setting.language_code, '
'campaign.shopping_setting.campaign_priority, '
'campaign_budget.type, campaign.url_custom_parameters '
'FROM campaign '
'LIMIT 20')


Other values that I am unable to query:
- 'keyword_plan_negative_keyword'
- 'campaign_criterion.bid_modifier'

Values I have successfully queried:
- campaign.name
- campaign.id
- segments.ad_network_type
- 'campaign_budget.delivery_method'
- 'segments.device from campaign'
- 'conversion_action.attribution_model_settings.attribution_model'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/416e044b-c118-4d0f-8e67-b1e4c1a3bc48%40googlegroups.com.


Re: Can't get Campaign Audience bids through API.

2019-09-18 Thread Dariusz Ciemięga
Thanks for the quick replay. I tried 
 SELECT campaign_criterion.type, campaign_criterion.bid_modifier, 
campaign_criterion.campaign, campaign_criterion.status FROM 
campaign_audience_view 
but I got no results.


On Wednesday, September 18, 2019 at 5:02:38 PM UTC+2, adsapiforumadvisor 
wrote:
>
> Hello Dariusz,
>
> Could you please use campaign_audience_view 
> 
>  instead 
> to fetch audiences targeting to your campaign? Please give it a try and let 
> me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UHH8G4: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/78f18dad-b9e8-4a73-b4ec-cf6c92ed2e57%40googlegroups.com.


Batch operations, getting BatchJobProcessingError.INPUT_FILE_CORRUPTION

2019-09-18 Thread Matej Lach
Hello,

Am using the Adwords SOAP XML API directly from a language not supported by 
the client library, so am constructing the batch operations am sending by 
hand.

When I am trying to send an operation to increase an ad group & product 
group CPC bid, I am always getting 
BatchJobProcessingError.INPUT_FILE_CORRUPTION back from the API.

My operations looks like this:


https://adwords.google.com/api/adwords/cm/v201809;>

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  72350312392
  
 686598355666
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  68825630861
  
 686259350310
 validId
  
  
 

   10

CRITERION
 
  
   

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns3:AdGroupOperation">
   SET
   
  validId
  
 validId
 validId
  
  
 

   10

CRITERION
 
  
   



 The  batch job id is 1919407997 - I'd really appreciate someone looking 
into this & how should the correct structure look like.

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/2655da1f-073c-45bf-a36d-0a9488283621%40googlegroups.com.


How to pause and reenable individual products in Shopping campaigns

2019-09-18 Thread Soren Jensen

Hi everyone. 

I'm trying to find documentation on how to set up automated pausing of 
individual products in my shopping campaigns when products go out-of-stock. 
Secondly, reenable the ads when products are back in stock. 

Can any of you point me in the right direction? 

Thank you in advance. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/eea8e0e2-11d7-4f5e-8d29-106bdd734bbb%40googlegroups.com.


RE: Set Audiences for Campaign

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi Tony,

You may use the CampaignCriterionService and AdGroupCriterionService to target 
the audience to any specific campaign or ad group. You may refer to this code 
sample as a reference to to add targeting criteria. Could you please take a 
look and let us know if you encounter any issues?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHH5V6: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/nmVbL0PY19L000149kV4_JR6GEdEGzBA36rw%40sfdc.net.


RE: ad_group_ad_asset_view not returns any results

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi,

The ad_group_ad_asset_view return the assets details associated with the 
specific ad group ad. If the asset is not associated with any ad, this might 
not return any results. Could you please share the client customer Id for the 
account using Reply privately to author, to investigate further?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHHA9o: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/6LfHY0PY19FB00pCatX0UaQ3WyEcoZj5jsmw%40sfdc.net.


RE: upgrade google-ads-php api

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Kuldeep,

If you are trying to upgrade your client library you have to download the 
latest version as specified by Adrian here and then follow the instructions 
mentioned in the readme.md file to get started.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHHA9t: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/bsJQt0PY18PB00OZ1Bt1OcRqOvdxrAaHmnWg%40sfdc.net.


RE: Can't get Campaign Audience bids through API.

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Dariusz,

Could you please use campaign_audience_view instead to fetch audiences 
targeting to your campaign? Please give it a try and let me know if you have 
any further questions.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHH8G4: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/Siccv0PY18FS00QiojZotrRoK0ofLVz7L7DQ%40sfdc.net.


RE: Invalid tocpic path

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hello Tony,

Thanks for sharing the details. We are looking into the issue, we will get back 
to you soon.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UHH5VB: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/1bCc00PY17L800rDXgBHEYQ2eLsFNmkpmpOQ%40sfdc.net.


Account timezone

2019-09-18 Thread Marcos Gil Fuertes
What timezone is used for reports, please? Can I query it through the API?

Regards

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c36cca11-708b-4954-abe0-917593fa1e03%40googlegroups.com.


Re: upgrade google-ads-php api

2019-09-18 Thread Adrian Lara
Hi KULDEEP, the only big change for migrate the v1 to v2 is the 
getXXXValue/setXXXValue to getXXXUnwrapped/setXXXUnwrapped, can you see 
this change here .

Change  v1 to v2 

   - Added support for v2 of Google Ads API. 
   - Renamed the getter and setter functions for unwrapped values from 
   getXXXValue/setXXXValue to
   getXXXUnwrapped/setXXXUnwrapped to prevent them from clashing with other 
   field names. 
   - Added a test to instantiate all classes in the codebase to make sure 
   there are no syntax errors. 
   - Upgraded dependencies.

 Change v2 to v2.1


   - Added support for v2_1 of Google Ads API. 
   - Switched the default implementation of protobuf to use the C extension 
   and added related
   documentation. 
   - Added examples for Google My Business location extensions, Smart 
   display ads and campaign
   experiments.


On Wednesday, September 18, 2019 at 4:56:21 AM UTC-3, KULDEEP PATEL wrote:
>
>
> how to upgrade https://github.com/googleads/google-ads-php API version 
> from V1 to V2. 
> I have used V1 version and now V2 is out and want to upgrade it. What are 
> the steps? Please 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/754a1ad3-7faa-46ae-a363-79dfa128dead%40googlegroups.com.


How can I get the status of google-ads account (canceled or active)?

2019-09-18 Thread 蓝瀚
I'm tring to get all google-ads account under my google user, and I want to 
get the status field which would show if the account is canceled.

I'm followed customer_client 
, 
and tried with below codes:

 


credentials = google.oauth2.credentials.Credentials(**credentials_dict_lb)
client = google.ads.google_ads.client.GoogleAdsClient(credentials, 
GG_DEVELOP_TOKEN)

ga_service = client.get_service('GoogleAdsService', version='v2')

query = ('SELECT customer_client.id, '
 'customer_client.descriptive_name,'
 'customer_client.resource_name, '
 # 'customer_client.client_customer '
 'customer_client.currency_code,'
 'customer_client.hidden, '
 # 
 'customer_client.level, '
 'customer_client.time_zone '
 'FROM customer_client')

# results1 = customer_service.search(query)
results = ga_service.search(customer_id='1871151278',query=query)

for item in results:
print(item)


But it seems there's no status related field, What field it should be ? And 
How Can I get the account status as I metioned above?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0b0c2db3-1b5c-4cd5-b6e3-fd8a79cabf30%40googlegroups.com.


Can I list all google-ads accounts under my google user?

2019-09-18 Thread 蓝瀚
I want to list all google-ads accounts under the authenticated 
google-user(example.gmail.com).

Main codes I've tried as below:



credentials = google.oauth2.credentials.Credentials(**credentials_dict_lb)
client = google.ads.google_ads.client.GoogleAdsClient(credentials, 
GG_DEVELOP_TOKEN)

ga_service = client.get_service('GoogleAdsService', version='v2')

query = ('SELECT customer.id, '
 'customer.descriptive_name,'
 'customer_client.resource_name,'
 'customer_client.client_customer,'
 'customer_client.currency_code,'
 'customer_client.hidden,'
 
 'customer_client.level,'
 'customer_client.time_zone'
 'FROM customer_client')

# results1 = customer_service.search(query)
results = ga_service.search(customer_id='1871151278',query=query)

for item in results:
print(item)



But I got errors like:
Request made: ClientCustomerId: 1871151278, Host: googleads.googleapis.com:
443, Method: /google.ads.googleads.v2.services.GoogleAdsService/Search, 
RequestId: IqpIeAYkC5mCXHbN3gYLqg, IsFault: True, FaultMessage: Error in 
query: unexpected input customer_client.

google.ads.google_ads.errors.GoogleAdsException: (<_Rendezvous of RPC that 
terminated with:
 status = StatusCode.INVALID_ARGUMENT
 details = "Request contains an invalid argument."
 debug_error_string = "{"created":"@1568800255.16600","description":"
Error received from peer ipv4:10.0.0.19:8118","file":"src/core/lib/surface/
call.cc","file_line":1052,"grpc_message":"Request contains an invalid 
argument.","grpc_status":3}"
>, <_Rendezvous of RPC that terminated with:
 status = StatusCode.INVALID_ARGUMENT
 details = "Request contains an invalid argument."
 debug_error_string = "{"created":"@1568800255.16600","description":"
Error received from peer ipv4:10.0.0.19:8118","file":"src/core/lib/surface/
call.cc","file_line":1052,"grpc_message":"Request contains an invalid 
argument.","grpc_status":3}"
>, errors {
  error_code {
query_error: UNEXPECTED_INPUT
  }
  message: "Error in query: unexpected input customer_client."
}
, 'XE5DFNpMAJNP-YpdPG7qfw')


How can I get the accounts info as expected?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8f9c8ba6-1200-40b1-8528-6d24f7b64095%40googlegroups.com.


In the Google Ads API, I want to get the account budget of all customer accounts under the MCC, as well as the account consumption. Do I have to send a request for each customer account?

2019-09-18 Thread li qian
hi 

 In the Google Ads API, I want to get the account budget of all customer 
accounts under the MCC, as well as the account consumption. Do I have to 
send a request for each customer account?

 At present, one MCC contains more than one thousand accounts. If each 
account sends a request, this consumption is huge.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/70dc82fe-3a65-471f-b08c-9209185b5eed%40googlegroups.com.


upgrade google-ads-php api

2019-09-18 Thread KULDEEP PATEL

how to upgrade https://github.com/googleads/google-ads-php API version from 
V1 to V2. 
I have used V1 version and now V2 is out and want to upgrade it. What are 
the steps? Please 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/e1408474-a345-4eaf-a15d-326021c4ca95%40googlegroups.com.


ad_group_ad_asset_view not returns any results

2019-09-18 Thread 'yc' via AdWords API and Google Ads API Forum
I am trying to use ad_group_ad_asset_view to get assets report per ad group 
but I can't get any results back from ad_group_ad_asset_view 
.
 
btw I can only query asset by asset 
. Could you 
suggest where do I do wrong?
here is my code snippet:


ga_service = client.get_service('GoogleAdsService', version='v2')



query = ("SELECT ad_group_ad_asset_view.performance_label, asset.id 
FROM ad_group_ad_asset_view")

 
results = ga_service.search(customer_id, query=query, 
page_size=page_size)
print('%s' %results)   
try: 
print('test')  
for row in results:
print('ID %s' % (row.asset.id))


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/26455af2-cbe2-43b4-aa14-8104c4e22fce%40googlegroups.com.


RE: UseRawEnumValues ignored when querying AD_PERFORMANCE_REPORT

2019-09-18 Thread Google Ads API Forum Advisor Prod
Hi John,

Thanks for posting your concern. My apologies also for the delayed response.

I discussed the issue to the team and decided to raise a bug ticket for this. 
Please keep an eye on this thread as I will let you know here if there are 
updates regarding this issue.

Regards,
Ejay
Google Ads API Team
ref:_00D1U1174p._5001UHGsjm: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/Fquma0PY0LUK007IDmQ5SARK6n7g79iWeH3Q%40sfdc.net.