Apply auto-created custom intent audience to ad groups with Ad Words API

2020-01-10 Thread Harry
Hi,

I'm wondering if it's possible to call the API to apply auto-created custom 
intent audience to ad groups? Through the UI I can search for "restaurant" 
and select the auto-created audiences (as shown in the attach). Is there a 
way to do this using the API? 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/93ba6f3c-504a-4c77-bd54-a104c69d3575%40googlegroups.com.


Re: segments not working

2020-01-10 Thread Mason Digital
Thanks for responding.

No if I add any other segments like the above example where I included 
segments.conversion_action_name to the FROM clause I receive an error using 
the Python client library.

Request made: ClientCustomerId: ((MYCLIENTIDISHERE)), Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v2.services.GoogleAdsService/Search, RequestId: None, 
IsFault: True, FaultMessage: None
Traceback (most recent call last):
  File "get_ads.py", line 70, in 
main(google_ads_client, "4431704982", _DEFAULT_PAGE_SIZE)
  File "get_ads.py", line 43, in main
for row in results:
  File 
"/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", 
line 212, in _items_iter
for page in self._page_iter(increment=False):
  File 
"/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", 
line 243, in _page_iter
page = self._next_page()
  File 
"/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", 
line 534, in _next_page
response = self._method(self._request)
  File 
"/usr/local/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", 
line 143, in __call__
return wrapped_func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", 
line 286, in retry_wrapped_func
on_error=on_error,
  File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", 
line 184, in retry_target
return target()
  File "/usr/local/lib/python3.7/site-packages/google/api_core/timeout.py", 
line 214, in func_with_timeout
return func(*args, **kwargs)
  File 
"/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", 
line 57, in error_remapped_callable
return callable_(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
222, in __call__
compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
257, in _with_call
return call.result(), call
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
126, in result
raise self._exception
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
248, in continuation
compression=new_compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
272, in with_call
compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
257, in _with_call
return call.result(), call
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
126, in result
raise self._exception
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
248, in continuation
compression=new_compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
272, in with_call
compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 
256, in _with_call
continuation, client_call_details, request)
  File 
"/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py",
 
line 139, in intercept_unary_unary
self._handle_grpc_failure(response)
  File 
"/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py",
 
line 105, in _handle_grpc_failure
google_ads_failure = self._get_google_ads_failure(trailing_metadata)
  File 
"/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py",
 
line 68, in _get_google_ads_failure
ga_failure = error_protos.errors_pb2.GoogleAdsFailure()
AttributeError: module 'google.ads.google_ads.v2.proto.errors' has no 
attribute 'errors_pb2'

On Friday, January 10, 2020 at 4:27:40 PM UTC-5, adsapiforumadvisor wrote:
>
> Hi Mason,
>
> Thanks for reaching out to us. Could you please confirm if my 
> understanding is correct that you’re not receiving errors, but the report 
> query you run in python does not return any data? If so, could you please 
> first check on your end if the data you’re trying to query exists in the 
> Google Ads UI? If the data does not exist in your account in the UI then it 
> will not appear in the report. Please let me know if you run into further 
> issues.
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5001USw6xe:ref
>

-- 
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this e-mail in error, please 
delete it from your system. 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 fro

Re: Where Contains Clause

2020-01-10 Thread Mason Digital
Thank you

On Friday, January 10, 2020 at 4:51:55 PM UTC-5, adsapiforumadvisor wrote:
>
> Hi Mason,
>
> Thanks for reaching out. You will be able to retrieve the campaigns that 
> include a keyword in their name by adding % before and after the keyword 
> which in your case is  'AND campaign.name LIKE \'%Store%\' '. Please let 
> me know if you have any other questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
>
> ref:_00D1U1174p._5001USw6kW:ref
>

-- 
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this e-mail in error, please 
delete it from your system. 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/8e54a05d-1d96-4a6c-ad69-cc6a84de6a0a%40googlegroups.com.


RE: [Google Ads API] Adding account billing setup using existing paymentAccountId

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Alok,

Thank you for reaching out. Adding the payments_account to BillingSetup 
requires the payments_account_id from PaymentsAccountInfo. As you can see, this 
value is a string and must be passed with dashes. Therefore, you need to pass 
the Id as a string with dashes and the error message is correct.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USw5MD: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/CzvTq0Q3WVSP009ZIDQVsGS924vGgyxF0jbA%40sfdc.net.


RE: Where Contains Clause

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Mason,

Thanks for reaching out. You will be able to retrieve the campaigns that 
include a keyword in their name by adding % before and after the keyword which 
in your case is  'AND campaign.name LIKE \'%Store%\' '. Please let me know if 
you have any other questions.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USw6kW: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/PhZWf0Q3WVDZ00aHBQhcqdSRmuH6vbmYbluA%40sfdc.net.


How to get association for AdExtension

2020-01-10 Thread Frank We
Hello,

I've been trying to get all the adgroup and campaign associated while 
getting AdExtension through report in *extension_feed_item*.
but I can't seem to find a way to get this adgroup or campaign in report. 

I've tried using extension_feed_item.targeted_ad_group 
and extension_feed_item.targeted_campaign but they were all null.
Tried getting association 
using feed_item_target, feed_mapping, campaignExtensionSetting and other 
resource but it didn't give much information.

Is it possible get association at all in report?

Help!

btw I'm using GoogleAdsAPI V2

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4dd0798a-7ed8-4fc1-886f-61d75221ec41%40googlegroups.com.


How to get association for all AdExtension

2020-01-10 Thread Frank We
Hello, 

I've been trying to get campaign and adgroup associated with the 
AdExtensions retrieved from  extension_feed_item,
but I can't seem to find a way to get the association. 

I've tried using fields targeted_ad_group and targeted_campaign but they 
are all null. 
Tried getting association using feed_item_target, feed_mapping, and 
CampaignExtensionSetting,
but all of them really doesn't give back useful information. 

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/aecbf40e-1c40-4ed9-b613-6b957f9db23c%40googlegroups.com.


RE: Webhook new campaign

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Leandro,

Thanks for reaching out. Unfortunately there is no way to trigger the 
notification to a URL with every new campaign created in the APIs. You could 
reach out to the Google Ads Scripts and they might have a solution for it. You 
could reach out to them by this forum. Please let me know if you have any 
further concerns.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USw4KB: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/YVxu_0Q3WQJN009lChMHLoTJCnjfqINC42lQ%40sfdc.net.


RE: Call Extension Clicks

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Eli,

While it's not possible to get the IP of a call extension clicker, you can run 
the Placeholder Report to get performance data on your call extensions and see 
what campaigns they are from. You can also run the Placeholder Feed Item Report 
which will give you performance data on each individual call extension.

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


RE: ImageError.INVALID_IMAGE

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Bonge,

Thank you for reaching out. Can you please share the complete detailed request 
and response logs via reply privately to author so that I can further 
investigate the issue? You can find information on enabling logging here.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USw3HS: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/Lp5_l0Q3WPSP009wrBvZVrSm67lid2U4LPYA%40sfdc.net.


segments not working

2020-01-10 Thread Mason Digital
Using v2 of Google Ads API

I cannot get any segments other than segments.date to return any data/not 
give me an error. Below is an example using segments.conversion_action_name
I also want to pull data with segments.geo_target_most_specific_location 
and that does not seem to be working either. Am I not following this 
correctly?


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

query = ('SELECT campaign.name, segments.date, 
segments.conversion_action_name, metrics.impressions, metrics.clicks, 
metrics.cost_micros, metrics.phone_calls, metrics.all_conversions FROM 
campaign WHERE segments.date BETWEEN \'2020-01-01\' AND \'2020-01-05\' '
 'ORDER BY campaign.name')

results = ga_service.search(customer_id, query=query, 
page_size=page_size)

-- 
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this e-mail in error, please 
delete it from your system. 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/a56dff13-7c6b-4423-9b13-c9b98e552953%40googlegroups.com.


RE: Eligible campaign status update returns error code 2 'No status received'

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Michael,

Thank you for reaching out. Can you please provide the complete detailed 
request and response logs via reply privately to author so that I can further 
investigate the issue? You can find information on enabling logging here.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USw3BF: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/8F7wx0Q3WN9E0024a3FViGSTGZBoKa2Wov-A%40sfdc.net.


Where Contains Clause

2020-01-10 Thread Mason Digital
I am trying to get only campaigns that include a keyword in their name. In 
this case campaign.name CONTAINS Store

query = ('SELECT campaign.id, campaign.name, segments.date, 
metrics.impressions, metrics.clicks, metrics.cost_micros, 
metrics.phone_calls FROM campaign WHERE segments.date BETWEEN 
\'2020-01-01\' AND \'2020-01-31\' '
 'AND campaign.name LIKE \'Store\' '
 'ORDER BY campaign.id')

This returns no results even though I have several thousand campaigns with 
the keyword in it. I tried various operators listed at the link before like 
CONTAINS ANY but they just give me attribute errors.

https://developers.google.com/google-ads/api/docs/migration/querying

Any ideas what I am doing wrong/how I would achieve that.

-- 
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this e-mail in error, please 
delete it from your system. 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/0de1c3ab-f5da-4cbd-9557-ea4808ae0f50%40googlegroups.com.


RE: Do I Need to Migrate Google Ads Script?

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi,

Thanks for reaching out to us. I’m more than happy to help you with your issue. 
Because this is an issue related to Google Ads Scripts, I recommend you to 
contact the Google Ads Scripts Support Team here. If you have any further 
questions about Google Ads / AdWords API, please let me know.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001USw2yJ: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/pbIbV0Q3WMFU00LqODCxFLTjaOH_HqB5jShA%40sfdc.net.


RE: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread Google Ads API Forum Advisor Prod
Hi Rakesh,

Thank you for reaching out to us. Please look at this guide for information on 
how to set up OAuth2 authentication and how to obtain your client ID and client 
secret. If you need your customer ID, please click the “?” button on the Google 
Ads UI account page and your 10-digit "viewing customer ID" should be listed 
below. If you have further questions please let me know.

Thank you,

Bryan, Google Ads API Team
ref:_00D1U1174p._5001USw31U: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/ABQGz0Q3WI4200NGigwg9lSWW-JYcVXMTzAA%40sfdc.net.


[Google Ads API] Adding account billing setup using existing paymentAccountId

2020-01-10 Thread alok
Hi,

I am trying to add account billing by calling BillingSetupService using an 
existing paymentAccountId which is in format . But it 
throws invalid format as expected format is --- (dashes are 
required as opposed to adwords api).
Trouble is looks like there is a bug in Google ads java client library as 
it expects payment account resource name with long paymentAccountId

BillingSetup billingSetup = BillingSetup.newBuilder()
// BUG: Google Ads api accepts only long PaymentsAccountId 
while
// creating ResourceNames.paymentsAccount, but requires 
String
// in format "---"

.setPaymentsAccount(StringValue.of(ResourceNames.paymentsAccount(anAccountID, 
Long.valueOf(aBilling.getPaymentsAccountId()

Below is my request and response while adding the billingsetup. Can you 
please confirm if above steps are correct and this is indeed a bug?? or is 
there any other way of getting this work?

Request
---
MethodName: 
google.ads.googleads.v2.services.BillingSetupService/MutateBillingSetup
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=aaa, 
x-goog-api-client=gl-java/1.8.0_201 gapic/ gax/1.45.0 grpc/1.21.0}
Body: customer_id: "b"
operation {
  create {
start_time_type: NOW
payments_account {
  value: "customers/b/paymentsAccounts/"
}
end_time_type: FOREVER
  }
}


Response

Headers: 
Metadata(content-type=application/grpc,request-id=hM4Hr0B0AlzCIMLI1qlSsg,date=Fri,
 
10 Jan 2020 14:49:07 GMT,alt-svc=quic=":443"; ma=2592000; 
v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; 
ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000)
Body: null
Failure message: errors {
  error_code {
billing_setup_error: INVALID_PAYMENTS_ACCOUNT
  }
  message: "The requested payments account needs either a correctly 
formatted id (---), or a non-blank name."
}

Thanks,
Alok

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a0b1cdf9-f77c-4e05-b6ff-e6490005d64d%40googlegroups.com.


Re: Reports attributes behavior

2020-01-10 Thread Oksana Sulyma
Hi Mat, thanks for your answer. This is what I think too and I need kind of 
official confirmation from Google Ads team. 
In our application we show detailed attributes, not only orderID, so 
basically I need to know all the dimensions that force metrics breakdown. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a7f8b9f-e26a-4954-8eb3-07584a827d51%40googlegroups.com.


Webhook new campaign

2020-01-10 Thread Leandro Castro
How to setup a webhook to notify a URL every new campaign?
There's a way?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f3679ebb-2389-4690-b38a-453a96f1d293%40googlegroups.com.


ImageError.INVALID_IMAGE

2020-01-10 Thread Bonge LaBwana


Hi 


I am creating display ad using google adwords api 


Here is script am using to create AddResponsiveDisplayAd : 
https://wp-iframe.videomill.co/AddResponsiveDisplayAd.php.txt


Now when I run script : php examples/AdWords/v201809/BasicOperations/
AddResponsiveDisplayAd 
.php


PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
[ImageError.INVALID_IMAGE @ media[0].data] in 
C:\xampp\htdocs\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:43


I am using example from google : 
https://developers.google.com/adwords/api/docs/guides/responsive-ads


What do I need to do to solve the problem ???


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/7415d38c-5151-489d-aeee-8f1afa12c59b%40googlegroups.com.


Eligible campaign status update returns error code 2 'No status received'

2020-01-10 Thread Michel Mulder
Hi,

I have an enabled campaign whit the status eligible. When i try to update 
this campaign using the new grpc api, the api returns the following result:

{ "message": "No status received", "code": 2, "status": "UNKNOWN", 
"details": []}

I am using the following libraries to contact the api:

google/grpc-gcp 0.1.4 gRPC GCP library for channel management grpc/grpc 
1.26.1 gRPC library for PHP
google/gax 1.2.0 Google API Core for PHP
google/protobuf v3.11.2 proto library for PHP
googleads/google-ads-php v3.0.0 Google Ads API client for PHP


PHP extentions:
php-pecl-protobuf.x86_64 3.11.2-1.el7.remi.7.4 @remi-php74
php-pecl-grpc.x86_64 1.26.0-1.el7.remi.7.4 @remi-php74`


I don't think this issue is PHP related because the documentation about 
status codes (https://github.com/grpc/grpc/blob/master/doc/statuscodes.md) 
says that it is some sort of mapping issue between address spaces.


Is there any way this campaign can be updated or should this issue be 
solved at the api side?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0700e4d9-904c-462a-ab2c-b712c44dfe23%40googlegroups.com.


Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread Rakesh Chauhan
But where you have used refresh token to get customer Id of new logn user 
?  

On Friday, January 10, 2020 at 1:20:02 PM UTC+5:30, Rakesh Chauhan wrote:
>
> Hello ,
>
> can you please provide me information how can we get Customer ID using 
> Oauth 2.0 or refresh token in Google Ads API(Bita version)
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3c961b3c-3786-4d4b-b9f6-93243f2d5f40%40googlegroups.com.


Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread SUBINPVASU
Create $session using respective MCC ID

On Fri, Jan 10, 2020 at 1:37 PM SUBINPVASU  wrote:

> See if this would work??
>  public function GetAccountDetails(AdWordsServices $adWordsServices,
> AdWordsSession $session,$refresh_token)
>   {
>   $customerService = $adWordsServices->get($session,
> CustomerService::class);
>   $account = $customerService->getCustomers();
>   foreach ($account as $customers)
>   {
>$customer[] = array(
>   'customerid'=>$customers->getCustomerId(),
>   'customername'=>$customers->getDescriptiveName(),
>   'manager'=>$customers->getCanManageClients(),
>   'test_account'=>$customers->getTestAccount(),
>   'refresh_token'=>$refresh_token
>   );
>   }
>   return $customer;
>   }
>
> On Fri, Jan 10, 2020 at 1:20 PM Rakesh Chauhan 
> wrote:
>
>> Hello ,
>>
>> can you please provide me information how can we get Customer ID using
>> Oauth 2.0 or refresh token in Google Ads API(Bita version)
>>
>> --
>> --
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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/46e5ab0e-f5bd-4f6b-9bb8-b085b63a642c%40googlegroups.com
>> 
>> .
>>
>
>
> --
> *subinpvasu*
> *9495546474*
>


-- 
*subinpvasu*
*9495546474*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAB1%3DLU9ZDNUHC3A_QwdzsE4L-_oCDopkSAw3qhop5Bdg1GkhaA%40mail.gmail.com.


Re: how to get customer Id using refresh token which are not under my MCC account using Google Ads API (Bita version)

2020-01-10 Thread SUBINPVASU
See if this would work??
 public function GetAccountDetails(AdWordsServices $adWordsServices,
AdWordsSession $session,$refresh_token)
  {
  $customerService = $adWordsServices->get($session,
CustomerService::class);
  $account = $customerService->getCustomers();
  foreach ($account as $customers)
  {
   $customer[] = array(
  'customerid'=>$customers->getCustomerId(),
  'customername'=>$customers->getDescriptiveName(),
  'manager'=>$customers->getCanManageClients(),
  'test_account'=>$customers->getTestAccount(),
  'refresh_token'=>$refresh_token
  );
  }
  return $customer;
  }

On Fri, Jan 10, 2020 at 1:20 PM Rakesh Chauhan 
wrote:

> Hello ,
>
> can you please provide me information how can we get Customer ID using
> Oauth 2.0 or refresh token in Google Ads API(Bita version)
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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/46e5ab0e-f5bd-4f6b-9bb8-b085b63a642c%40googlegroups.com
> 
> .
>


-- 
*subinpvasu*
*9495546474*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAB1%3DLU8LyfaGN1SXM9b9TurTOPJx0x9Zvs1CJgbtxikSuH1_cw%40mail.gmail.com.