get linked manager account data

2021-01-14 Thread INI GlobalOps
Hi I'm wondering how to access the data for subaccounts under a linked 
manager account.

When we request customer_service.list_accessible_customers() the response 
is this list:

Customer resource name: "customers/92"
Customer resource name: "customers/20"
Customer resource name: "customers/78 "
Customer resource name: "customers/84 "
etc.

These are manager accounts linked to our manager account.

*My question is how do I extract the subaccounts of these manager accounts 
so I can get campaign performance data?*

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/809fee66-6472-42e3-b732-21d152783ed1n%40googlegroups.com.


Re: refresh token issue

2021-01-20 Thread INI GlobalOps
Thank you the link to get support went to a list of stack overflow 
questions - is that correct?

On Tuesday, January 19, 2021 at 10:39:55 PM UTC-5 adsapiforumadvisor wrote:

> Hi,
>
> Thanks for posting your concern.
>
> Based on this document 
> , 
> a refresh token will indeed expired in 7 days if issued by a Google Cloud 
> Platform project with an OAuth consent screen configured for an external 
> user type and a publishing status of "Testing".
>
> However, I am afraid that refresh token related concerns are outside of 
> our expertise already. With this, I would suggest posting your question 
> here  to get 
> support from the team that is more equipped to provide support to this 
> question.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B1YT5: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/bc6cc045-a7c3-4527-9ee7-543f2abbc8b8n%40googlegroups.com.


v6 month segment not working

2021-02-12 Thread INI GlobalOps
Hi! 

after updating to v6 we are getting* this error:*

  error_code {
query_error: EXPECTED_FILTERS_ON_DATE_RANGE
  }
  message: "Expects filters on the following field to limit a finite date 
range: \'segments.month\'"
}

this was working fine before v6 can you help? more details below.

*whole message:*
Traceback (most recent call last):
  File 
"C:\Python\Python38\lib\site-packages\google\ads\google_ads\interceptors\exception_interceptor.py",
 
line 92, in __next__
return next(self._underlay_call)
  File "C:\Python\Python38\lib\site-packages\grpc\_channel.py", line 416, 
in __next__
return self._next()
  File "C:\Python\Python38\lib\site-packages\grpc\_channel.py", line 620, 
in _next
return self._next_response()
  File "C:\Python\Python38\lib\site-packages\grpc\_channel.py", line 607, 
in _next_response
raise self
grpc._channel._SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC 
that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1613133429.47400","description":"Error received from peer 
ipv4:172.217.6.170:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\campaign_report.py", line 525, in 
run_app()
  File ".\campaign_report.py", line 522, in run_app
write_campaign_reports(non_az_account_list)
  File ".\campaign_report.py", line 492, in write_campaign_reports
raw_batch_list = get_batch_list(account['account_id'], 
campaign_info["api_query"])
  File ".\campaign_report.py", line 178, in get_batch_list
response = ga_service.search_stream(str(customer_id), query)
  File 
"C:\Python\Python38\lib\site-packages\google\ads\google_ads\v6\services\google_ads_service_client.py",
 
line 326, in search_stream
return self._inner_api_calls['search_stream'](request, retry=retry, 
timeout=timeout, metadata=metadata)
  File 
"C:\Python\Python38\lib\site-packages\google\api_core\gapic_v1\method.py", 
line 143, in __call__
return wrapped_func(*args, **kwargs)
  File "C:\Python\Python38\lib\site-packages\google\api_core\retry.py", 
line 281, in retry_wrapped_func
return retry_target(
  File "C:\Python\Python38\lib\site-packages\google\api_core\retry.py", 
line 184, in retry_target
return target()
  File "C:\Python\Python38\lib\site-packages\google\api_core\timeout.py", 
line 214, in func_with_timeout
return func(*args, **kwargs)
  File 
"C:\Python\Python38\lib\site-packages\google\api_core\grpc_helpers.py", 
line 144, in error_remapped_callable
return _StreamingResponseIterator(result)
  File 
"C:\Python\Python38\lib\site-packages\google\api_core\grpc_helpers.py", 
line 72, in __init__
self._stored_first_result = six.next(self._wrapped)
  File 
"C:\Python\Python38\lib\site-packages\google\ads\google_ads\interceptors\exception_interceptor.py",
 
line 100, in __next__
raise e
  File 
"C:\Python\Python38\lib\site-packages\google\ads\google_ads\interceptors\exception_interceptor.py",
 
line 97, in __next__
self._failure_handler(self._underlay_call)
  File 
"C:\Python\Python38\lib\site-packages\google\ads\google_ads\interceptors\exception_interceptor.py",
 
line 141, in _handle_grpc_failure
raise self._get_error_from_response(response)
google.ads.google_ads.errors.GoogleAdsException: 
(<_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1613133429.47400","description":"Error received from peer 
ipv4:172.217.6.170:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, <_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1613133429.47400","description":"Error received from peer 
ipv4:172.217.6.170:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, errors {
  error_code {
query_error: EXPECTED_FILTERS_ON_DATE_RANGE
  }
  message: "Expects filters on the following field to limit a finite date 
range: \'segments.month\'"
}
, '66siKic13KIzYPhoHLbG-Q')

*here's our query:*

SELECT
campaign.id, 
campaign.name, 
campaign.status, 
campaign.start_date,
campaign.end_date, 
campaign_budget.total_amount_micros, 
campaign.vanity_pharma.vanity_pharma_display_url_mode,
campaign.vanity_pharma.vanity_pharma_text,
bidding_strategy.name, 
bidding_strateg

ad_groups name issue

2021-02-24 Thread INI GlobalOps
Hi we are getting adgroups data back from the ads api and many of the names 
are coming back like this:

ad_group {
resource_name: "customers/1234567/adGroups/9876543"
id: 10293847
name: "\320\273\320\265\320\263\320\276 
\320\264\321\203\320\277\320\273\320\276 
\320\266\320\265\320\273\320\265\320\267\320\275\320\260\321\217 
\320\264\320\276\321\200\320\276\320\263\320\260"
}

What is this and is there a way to decode it?

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/9cb6a2a9-d5e3-479b-a687-54eea0be3dd0n%40googlegroups.com.


get_geo_target_constant service limit

2021-03-19 Thread INI GlobalOps
Hi - we need geographic data at the ad_group level from the geographic_view 
resource on a daily basis - the issue is that we hit error 429: resource 
exhausted when we run this for even 1 account

*my question is:* how can we get the geographic metrics by ad_group?

this is the code:

client = GoogleAdsClient.load_from_storage(CREDS_PATH)
ga_service = client.get_service('GoogleAdsService', version='v6')
gt_service = client.get_service('GeoTargetConstantService', version='v6')

*# this query returns about 8500 records*
geo_query = {
"api_query": '''
SELECT ad_group.id, customer.id, ad_group.campaign, ad_group.name, 
geographic_view.location_type, geographic_view.resource_name, 
segments.geo_target_city, segments.month
FROM geographic_view  
WHERE segments.date = '2020-03-19'
ORDER BY customer.id '''
}

*# but when we try to run the geo_target_constant service we meet with 429 
error*
def get_batch_list(customer_id, query):
response = ga_service.search_stream(str(customer_id), query)
batch_list = []
for batch in response:
for row in batch.results:

*geotarget = gt_service.get_geo_target_constant(row.segments.geo_target_city)*
batch_list.append(geotarget)
return batch_list

get_batch_list('123456789', geo_query['api_query'])

thanks, frank

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/03f63d01-4e0a-4f5e-a632-7c03d1fadee1n%40googlegroups.com.


campaign type column in UI but not API

2021-03-31 Thread INI GlobalOps
Hi - at the campaign level we are able to get campaign type column through 
Google Ads UI dashboard but we CANNOT get it through the api.

Did we miss it? 

Or is campaign_type un available from the api?

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/5b91a5e9-a346-4747-a039-3f2234a5ce9fn%40googlegroups.com.


Ad details before trafficking

2021-03-31 Thread INI GlobalOps
>From the ads api - is there a way to get an ad's details before it goes 
live?

Like if we set up an ad on Monday with the headline 'abc'  and it is set to 
be trafficked Friday:

Can we make an api call on Wednesday and get the metrics such as the ads'  
headline 'abc'?

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/45123187-2d11-46ee-be7f-80b974658449n%40googlegroups.com.


Re: Ad details before trafficking

2021-04-12 Thread INI GlobalOps
Hi Matt - thank you for this - when you say 'live' does that mean an ad 
that was created but hasn't run yet or an ad that is currently running?

We enter our ads in the google UI in a paused state and schedule them to 
publish at a later time.

   - Could you please clarify: Does your answer mean that we are able to 
   get ad information in this paused state before it actually runs?
   - how long does it take for an ad's information (headline, display_url, 
   etc) to be available from the api
  - like when I create an ad or campaign in the UI - what time does it 
  take for us to be able to request that data from the api
   

On Wednesday, March 31, 2021 at 11:41:59 AM UTC-4 INI GlobalOps wrote:

> From the ads api - is there a way to get an ad's details before it goes 
> live?
>
> Like if we set up an ad on Monday with the headline 'abc'  and it is set 
> to be trafficked Friday:
>
> Can we make an api call on Wednesday and get the metrics such as the ads'  
> headline 'abc'?
>
> 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/c18702c8-4c45-4571-9dc1-e4b1148e12ean%40googlegroups.com.


Display_url not populating

2021-07-19 Thread INI GlobalOps
Hi I'm doing a simple query:

SELECT
campaign.id, 
ad_group_ad.ad.display_url,
segments.date
FROM ad_group_ad
WHERE segments.date DURING LAST_14_DAYS
ORDER BY campaign.id

but the api does not return any results:

 campaign {
  resource_name: "customers//campaigns/x"
  id: 11
}
ad_group_ad {
  resource_name: "customers/x/adGroupAds/x~xx"
  ad {
resource_name: "customers/x/ads/xxx"
  }
}
segments {
  date: "2021-07-05"
}

we are expecting:
ad_group_ad {
  resource_name: "customers/x/adGroupAds/x~xx"
  ad {
resource_name: "customers/x/ads/xxx",
display_url: "www.iamaurl.com"
  }
}
if I send a request for final_urls that DOES return results.

Can you please help diagnose or let me know if i'm doing something stupid?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/11e7cf9f-7b2c-4400-aa22-5c91a4369d62n%40googlegroups.com.


display_url not populating

2021-07-19 Thread INI GlobalOps


Hi I'm doing a simple query - using google ads api v6:

SELECT
campaign.id, 
ad_group_ad.ad.display_url,
segments.date
FROM ad_group_ad
WHERE segments.date DURING LAST_14_DAYS
ORDER BY campaign.id

but the api does not return any results:

 campaign {
  resource_name: "customers//campaigns/x"
  id: 11
}
ad_group_ad {
  resource_name: "customers/x/adGroupAds/x~xx"
  ad {
resource_name: "customers/x/ads/xxx"
  }
}
segments {
  date: "2021-07-05"
}

we are expecting:
ad_group_ad {
  resource_name: "customers/x/adGroupAds/x~xx"
  ad {
resource_name: "customers/x/ads/xxx",
display_url: "www.iamaurl.com"
  }
}
if I send a request for final_urls that DOES return results.

Can you please help diagnose or let me know if i'm doing something stupid?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d7a4c150-8ddf-4b02-b441-a2c9ae8d6aaen%40googlegroups.com.


Re: Get Negative Keywords List

2021-07-27 Thread INI GlobalOps
thank you!

On Tuesday, July 27, 2021 at 4:24:24 AM UTC-4 adsapi wrote:

> Hello,
>
> Thank you for reaching out to us.
>
> With regard to retrieving negative keyword lists, you can actually check 
> on the available guides below:
>
>- Using the AdWords API 
>
> 
>  
>- Using the Google Ads API 
>
> 
>  
>
> In the Google Ads API's perspective, you can use the GetSharedSet 
> .
>  
> This will return the SharedSet 
>  
> which 
> contains the SharedSetType 
> 
>  (NEGATIVE_KEYWORDS). 
> In addition to that, you can also make use of this field mapping 
> 
>  guide. 
> Once you already get the SharedSetId, you can then utilize this report (
> shared_criterion 
> 
> ).
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2JDfiO: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/6b0fa5ed-90b6-4ee5-8d8a-dfe4f6804a6cn%40googlegroups.com.


Re: api data doesn't match ui

2021-08-09 Thread INI GlobalOps
Can you please provide the link to the other thread you are referring to 
please? 

On Thursday, August 5, 2021 at 4:36:40 AM UTC-4 adsapi wrote:

> Hi,
>
> Thanks for reaching out to us. Our team has responded earlier on a similar 
> thread. For better tracking, let us continue discussion on that thread 
> instead.
>
> Regards, 
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
>  
>
>
> ref:_00D1U1174p._5004Q2HLrjO: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/28e01cc3-70ac-4200-b3cc-3be33a8cfbb5n%40googlegroups.com.


Get Negative Keywords List

2021-07-25 Thread &#x27;INI GlobalOps' via AdWords API and Google Ads API Forum
Hi what endpoint can we use in the api to get the *negative keyword list *that 
we set at account or campaign level?

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/e2ce1127-7a94-4762-808f-acb4c8025639n%40googlegroups.com.


customer not enabled error

2021-10-13 Thread &#x27;INI GlobalOps' via AdWords API and Google Ads API Forum
Hi, we when generating reports by iterating over a list of customers, 
sometimes we get an error when a customer is not enabled which stops the 
process.

What is the best way or endpoint to check for that?

So we can implement code like this

if customer.is_enabled == False then skip

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/6fbab122-1c19-4eee-b91d-77a83a8cb83fn%40googlegroups.com.


Re: customer not enabled error

2021-10-20 Thread &#x27;INI GlobalOps' via AdWords API and Google Ads API Forum
Thanks Matt - follow up question - the docs you linked state that 
partial_failure method isn't available for get requests -

Is there something we can use for get requests?

That's all we are doing is get requests - getting a daily list of accounts, 
then their ad performance reports like this:

def get_batch_list(customer_id, query):
message = "getting batch list for " + str(customer_id)
logger(message)
response = ga_service.search_stream(request = None,
customer_id = str(customer_id),
query = query)
batch_list = []
try:
for batch in response:
message = str(len(batch.results)) + " items found"
logger(message)
batch_list.append(batch.results)
return batch_list
except google.ads.google_ads.errors.GoogleAdsException as ex:
logger('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:
logger('\tError with message "%s".' % error.message)
if error.location:
for field_path_element in error.location.field_path_elements:
logger('\t\tOn field: %s' % field_path_element.field_name)
sys.exit(1)


Thanks!
On Thursday, October 14, 2021 at 11:37:27 AM UTC-4 adsapi wrote:

> Hello,
>
> Thanks for reaching out. The best way to handle this scenario is to enable 
> partial 
> failure 
> .
>  
> Setting partialFailure to *true* will allow you to handle failed 
> operations separately at the end without abruptly ending your request. 
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2PJJ2i: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/480ffb98-01c1-4fa0-a954-e86a3ff6a5ean%40googlegroups.com.


where to get creative_id

2021-10-20 Thread &#x27;INI GlobalOps' via AdWords API and Google Ads API Forum
Hi where can we get creative_id as a field in our reports just like we get 
ad_id.

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/ed074b5c-f2c4-4549-8ef1-dbfbb811f304n%40googlegroups.com.


Re: api data for ads that haven't run yet

2022-01-10 Thread &#x27;INI GlobalOps' via AdWords API and Google Ads API Forum
Hi Xiaoming, thanks for the response - we attempted this with 0 results.

We confirmed campaign and ads exist in UI - campaign is paused - but when 
we try to get that same data we get 0 results

Can you please provide any additional guidance you can? Thank you.

On Wednesday, June 16, 2021 at 3:55:06 PM UTC-4 adsapi wrote:

> Hi Frank,
>
> Thank you for reaching out. Yes, you could query against the ad that 
> hasn't run yet. It’s just that you the metrics would be zeros because it 
> hasn’t started running yet.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2IvsBL: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/d1cc1049-3f77-4ebd-be8d-44ed19fd49c5n%40googlegroups.com.


geographic view segmentation

2022-01-24 Thread &#x27;INI GlobalOps' via Google Ads API and AdWords API Forum
we are getting data from geographic view endpoint like so

SELECT
campaign.id,
geographic_view.resource_name, 
FROM geographic_view

BUT we need data from PRELAUNCH campaigns

Google api docs say we cannot get prelaunch data in combination with 
segments (campaign segment)

```
Segmenting resources
ad_group 
campaign 

Fields from the above resources, when selected along with this resource in 
your SELECT and WHERE clauses, *will segment* metrics.

```

Which changes our query to:

SELECT
geographic_view.resource_name, 
FROM geographic_view

We need to associate geotarget data with campaign

*our question is:*
How to we get geographic data with campaign.id for PRELAUNCH campaigns?

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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/63d34268-31dc-456d-81a9-72979790ba42n%40googlegroups.com.


Re: geographic view segmentation

2022-01-24 Thread &#x27;INI GlobalOps' via Google Ads API and AdWords API Forum
this is how we were accessing it before

*campaign.segments.geo_target_city*

On Monday, January 24, 2022 at 12:26:28 PM UTC-5 INI GlobalOps wrote:

> we are getting data from geographic view endpoint like so
>
> SELECT
> campaign.id,
> geographic_view.resource_name, 
> FROM geographic_view
>
> BUT we need data from PRELAUNCH campaigns
>
> Google api docs say we cannot get prelaunch data in combination with 
> segments (campaign segment)
>
> ```
> Segmenting resources
> ad_group <https://developers.google.com/google-ads/api/fields/v9/ad_group>
> campaign <https://developers.google.com/google-ads/api/fields/v9/campaign>
>
> Fields from the above resources, when selected along with this resource in 
> your SELECT and WHERE clauses, *will segment* metrics.
>
> ```
>
> Which changes our query to:
>
> SELECT
> geographic_view.resource_name, 
> FROM geographic_view
>
> We need to associate geotarget data with campaign
>
> *our question is:*
> How to we get geographic data with campaign.id for PRELAUNCH campaigns?
>
> 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/99f629ba-7121-4f47-97d2-bf034565e7ebn%40googlegroups.com.


prelaunch extensions data w campaign id

2022-01-24 Thread &#x27;INI GlobalOps' via Google Ads API and AdWords API Forum
We are getting extensions data for campaigns which have NOT run yet - they 
have 0 impressions and have not been trafficked

We need to get the campaign.id associated with extension.id

Here's the query
   SELECT
campaign.id,
extension_feed_item.id,
extension_feed_item.sitelink_feed_item.final_urls,
extension_feed_item.extension_type,
extension_feed_item.call_feed_item.phone_number,
extension_feed_item.callout_feed_item.callout_text,
extension_feed_item.sitelink_feed_item.line1,
extension_feed_item.sitelink_feed_item.line2,
extension_feed_item.sitelink_feed_item.link_text,
extension_feed_item.structured_snippet_feed_item.values,
extension_feed_item.targeted_geo_target_constant,
extension_feed_item.targeted_keyword.text,
extension_feed_item.targeted_keyword.match_type,
extension_feed_item.status
FROM extension_feed_item However because of the campaign 
segment we cannot get prelaunch data - in order to get prelaunch data we 
have to remove campaign.id from the query Our question is how do we get 
extension.id and campaign.id together for PRELAUNCH campaigns (campaigns 
with 0 metrics)? Appreciate any guidance here. 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b2031880-235c-468e-bfd9-842e3063543an%40googlegroups.com.


Re: geographic view segmentation

2022-01-26 Thread &#x27;INI GlobalOps' via Google Ads API and AdWords API Forum
thanks for flagging this we responded on that thread.

On Tuesday, January 25, 2022 at 2:47:48 AM UTC-5 adsapi wrote:

> Hello,
>
> I could see that my colleague, Mark, already responded to you in this 
> thread 
> .
>  
> I would recommend to continue the discussion on that thread instead for 
> better tracking of the issue.
>
> Regards,
> [image: Google Logo] 
> Teejay Wennie Pimentel 
> Google Ads API Team 
>
>
> ref:_00D1U1174p._5004Q2VOzaR:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/02326b7f-0b71-4df8-8c55-6a7da03c7c11n%40googlegroups.com.