Conversion Import not working any more.

2024-02-04 Thread Alexander Hornung
Does anyone know how to fix this issue? on newer accounts i get this error 
message when i import external conversions


this is the import csv

"Parameters:TimeZone=+0100","","","",""
"Google Click ID","Conversion Name","Conversion Time","Conversion 
Value","Conversion Currency"
"EAIaIQobChMI5b_GrKGKhAR3zKA5REAQYBiABEgLL5vD_BwE","Purchase","2024-02-01 
15:17:23","13.485","EUR"


Error message is

This conversion action uses external attribution. Make sure it has an 
attribution model name and credit

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bd0fc76d-e527-4931-9e5c-947b96a2cd68n%40googlegroups.com.


Re: Batch Jobs Stuck In Running State

2023-02-17 Thread Ershov Alexander
Hello, Anash!

Great, thank you!
As of now, it seems to be working.

On Fri, Feb 17, 2023 at 1:51 AM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> This issue is resolved now; let me know if you continue to see issues.
>
> Regards
> Anash
>
> ref:_00D1U1174p._5004Q2j0GZP:ref
>


-- 
Best regards,
Ershov Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAP%3DXvebCM9eEJo30t_fbZNLLUd5Rk50z%3DoXScvOq7x25zqwGyg%40mail.gmail.com.


Google Ads API Device Bid Modifiers

2022-10-29 Thread Alexander Omeltchuk
Hi,
I'm trying to get device bid modifiers from API and I noticed that in 
response to query: "SELECT campaign_criterion.criterion_id, 
campaign_criterion.bid_modifier
FROM campaign_criterion
WHERE campaign.id = '{googleCampaignId}'" i receive 0.0 modifier for 
"-100%" (value displayed in google ads interface) as long as 0.0 modifier 
for "-" (value displayed in google ads interface). Is it correct behaviour? 
How can i differentiate "-100" from "-"?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac697361-7e08-41c4-bbfb-902725f63e54n%40googlegroups.com.


Google Ads API batch job returns RESULTS_NOT_READY, regardless of the length of the timeout

2022-05-31 Thread Alexander Trofimov
Hello Team!

We use Google Ads API to automate the process of campaign creation and 
periodically we encounter the RESULTS_NOT_READY issue. Here's the fresh 
example:

Batch job id: customers/6034707376/batchJobs/9281369305
Request id: D1WMleK2VqciLRZ9StLUng

Error log:

15:21:59 ERROR [runtime_logger] 
{"module":"campaign","topic":"google_sync","error":"{\n\"message\": 
\"Request contains an invalid argument.\",\n\"code\": 3,\n
\"status\":

 \"INVALID_ARGUMENT\",\n\"details\": [\n{\n
\"@type\": 
\"type.googleapis.com\\\/google.ads.googleads.v9.errors.GoogleAdsFailure\",\n  
  \"errors\": [\n   

 {\n\"errorCode\": {\n  
  \"batchJobError\": \"RESULTS_NOT_READY\"\n},\n
\"message\": \"Result

s cannot be retrieved until batch job is finished.\"\n}\n  
  ],\n\"requestId\": \"D1WMleK2VqciLRZ9StLUng\"\n  
  }\n]\n}","context":[{"file":"

\/application\/vendor\/google\/gax\/src\/ApiException.php","line":192,"function":"create","class":"Google\\ApiCore\\ApiException","type":"::","args":["Request
 
contains an invalid argume

nt.",3,[{"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batchJobError":"RESULTS_NOT_READY"},"message":"Results
 
cannot be retriev

ed until batch job is 
finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}],[{"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batch

JobError":"RESULTS_NOT_READY"},"message":"Results cannot be retrieved until 
batch job is 
finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}],null]},{"file":"\/application\/vendor\/googl

e\/gax\/src\/ApiException.php","line":306,"function":"createFromRestApiResponse","class":"Google\\ApiCore\\ApiException","type":"::","args":["Request
 
contains an invalid argument.",3,[{

"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batchJobError":"RESULTS_NOT_READY"},"message":"Results
 
cannot be retrieved until 

batch job is finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}]]},

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cf4847e6-f395-4c94-a9fb-2c009a882d2an%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-12 Thread Alexander Orlov
Not really: In version 10.1 
KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics is meant to be used 
without creating a Keyplan, Campaign, Adgroups or the like. 
However, your link leads exactly to the description I found also before.
Does this mean, specifying the context of a language and geolocations still 
needs the creation of the overhead objects? 
Best regards
Alex

adsapi schrieb am Donnerstag, 12. Mai 2022 um 04:30:36 UTC+2:

> Hi Alexander,
>
> Thank you for your reply.
>
> You can refer to the example from this guide 
> <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#create_a_keyword_plan>
>  
> as it provides details on how to include geo targets as well as language 
> constants, in your keyword plan. I hope this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/46335f8c-b080-4304-a9f0-d35520fde98cn%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-11 Thread Alexander Orlov
In version 10.1 for the request of 
KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics 
<https://developers.google.com/google-ads/api/reference/rpc/v10/KeywordPlanIdeaService#generatekeywordhistoricalmetrics>
 how 
to set e.g. a language and geoConstants?

Best regards
Alex

adsapi schrieb am Mittwoch, 11. Mai 2022 um 14:57:46 UTC+2:

> Hi Alexander,
>
> Thanks for confirming that you are able to already solve the problem using 
> v10.1. Should you have additional clarifications with the APIs, you may 
> open a new thread, and we'll be happy to assist you.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/00bac522-3084-4db1-bb99-69c72ea1bde2n%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-11 Thread Alexander Orlov
Thanks a lot for the answer and especially for hinting to the new version. 
Historical metrics include now more fields I need. 

I was able however to already solve my problem: 
Some of the missing keywords were hiding in close_variants and some others 
were added (unexpectedly) to the original list, which I passed. Though, 
with some array_diffs I was able to find all (!) missed (and new) keywords. 
Thanks again for your efforts. 

adsapi schrieb am Dienstag, 10. Mai 2022 um 20:45:06 UTC+2:

> Hi Alexander,
>
> Thanks for reaching out. Can you please try generating metrics for a list 
> of keywords in version 10.1? In this version 
> <https://developers.google.com/google-ads/api/docs/release-notes#planning>, 
> you are not required to pass a keyword plan, keyword plan campaign, or ad 
> group. 
>
> If you continue to see the issue where you are not receiving metrics for 
> each listed keyword, can you please *privately *provide us with the 
> complete request and response logs?
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/7df54fed-41bb-4a2f-b919-e9c6f3a65903n%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-09 Thread Alexander Orlov
found something new. 
If I reduce the pagination number, the number of lost results reduces as 
well. Roughly the distribution follows 

plot points[(1, 4.72),(5000, 2.12),(2500, .78),(1250, .43),(625, 
.30),(500, .24),(250, .03),(200,0.03)]

(via WolframAlpha), where the y-axis is in percent and the x-axis is the 
pagination number. 

The idea comes into my mind because of the *RECOMMENDED_PAGE_SIZE* parameter, 
used 
in AdWords API. However, both of the questions above remains:
1. Why getMetrics() loose results? 
2. How to find out, which keywords exactly were omitted during processing? 
and now
3. Is reducing the number of keywords/plan a valid workaround or do I miss 
something here? At least the documentation states, the amount of keywords 
per plan allowed is 1. 

Alexander Orlov schrieb am Sonntag, 8. Mai 2022 um 16:10:57 UTC+2:

> Hi all! 
> (As usual) I'm working on migrating AdWords API to Ads API. 
> The use case is the following: 
>
> Feed an amount of keywords (paginating them by keyword plans a 10k) to 
> generateHistoricalMetrics($keywordPlanResource) and collect the results.
>
> To achieve this I followed rather closely the instructions at 
>
> https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en
> and especially 
>
> https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#mapping_to_the_ui
> using KeywordPlanAdGroupKeywords (with a single ad group)
> and avoiding to pass a specific date range for now, relying on the default 
> value. 
>
> I had to apply some filters on my keywords because of 
> KEYWORD_HAS_INVALID_CHARS and KEYWORD_TEXT_TOO_LONG, but all the errors 
> which I'm aware of are gone now. 
>
> Now, I found out, that the KeywordPlanHistoricalMetrics object does *not* 
> contain any keyword id (of the form 
> customers/*/keywordPlanAdGroupKeywords/*) So, I have to rely on the correct 
> ordering. This is ok as it seems, that the original ordering of keywords is 
> preserved within the results. 
> https://developers.google.com/protocol-buffers/docs/encoding#optional
>
> But still I have the problem, that 
>
> count($keywordPlanServiceClient->generateHistoricalMetrics($keywordPlanResource)->getMetrics())
>  
> < count($passedKeywords)
>
> where each of $passedKeywords where passed to 
>
> new KeywordPlanAdGroupKeyword([
> 'text' => $passedKeyword,
> 'match_type' => KeywordMatchType::EXACT
> 'keyword_plan_ad_group' => $planAdGroupResource
> ]);
>
> So I have two questions here: 
>
> 1. Why getMetrics() does not yield the same amount of results as the 
> amount of passed keywords?
>
> 2. I'm struggling with debugging at this moment: Say, I want to know which 
> keywords are let out. Either for providing more information at this place 
> or just to skip them, and let my customer know, that these particular 
> keywords were not queried. How to do this, when although I have a 
> keyword-id for every passed keyword I cannot match the returned metrics to 
> them, because the KeywordPlanHistoricalMetrics object does not contain any 
> keyword id. 
>
>
> Cheers and thanks in advance 
>
> Alex
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e1bf0bb8-aa14-4adc-a93a-118ac371dbbbn%40googlegroups.com.


getMetrics() result does not yield for all keywords

2022-05-08 Thread Alexander Orlov
Hi all! 
(As usual) I'm working on migrating AdWords API to Ads API. 
The use case is the following: 

Feed an amount of keywords (paginating them by keyword plans a 10k) to 
generateHistoricalMetrics($keywordPlanResource) and collect the results.

To achieve this I followed rather closely the instructions at 
https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en
and especially 
https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#mapping_to_the_ui
using KeywordPlanAdGroupKeywords (with a single ad group)
and avoiding to pass a specific date range for now, relying on the default 
value. 

I had to apply some filters on my keywords because of 
KEYWORD_HAS_INVALID_CHARS and KEYWORD_TEXT_TOO_LONG, but all the errors 
which I'm aware of are gone now. 

Now, I found out, that the KeywordPlanHistoricalMetrics object does *not* 
contain any keyword id (of the form 
customers/*/keywordPlanAdGroupKeywords/*) So, I have to rely on the correct 
ordering. This is ok as it seems, that the original ordering of keywords is 
preserved within the results. 
https://developers.google.com/protocol-buffers/docs/encoding#optional

But still I have the problem, that 

count($keywordPlanServiceClient->generateHistoricalMetrics($keywordPlanResource)->getMetrics())
 
< count($passedKeywords)

where each of $passedKeywords where passed to 

new KeywordPlanAdGroupKeyword([
'text' => $passedKeyword,
'match_type' => KeywordMatchType::EXACT
'keyword_plan_ad_group' => $planAdGroupResource
]);

So I have two questions here: 

1. Why getMetrics() does not yield the same amount of results as the amount 
of passed keywords?

2. I'm struggling with debugging at this moment: Say, I want to know which 
keywords are let out. Either for providing more information at this place 
or just to skip them, and let my customer know, that these particular 
keywords were not queried. How to do this, when although I have a 
keyword-id for every passed keyword I cannot match the returned metrics to 
them, because the KeywordPlanHistoricalMetrics object does not contain any 
keyword id. 


Cheers and thanks in advance 

Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00920dc3-b7e7-46dc-9006-9911311c41efn%40googlegroups.com.


Google Ads API taxes

2022-03-18 Thread Alexander Omeltchuk
Hi,
Could you please help me or give me some cues for retrieving taxes 
information via google ads api.

I need somehow to get data about google ads account taxes for given period 
and i only found one way to do this for accounts with monthly invoices 
enabled via invoice resource.
But i need to get this info for all types of accounts not only for that 
with monthly invoicing type of payments. Could you please help me?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a3fa325-17f8-42ed-8f89-fcc79a8967c6n%40googlegroups.com.


API returns empty responses for particular account(Adwords and Google ADS)

2021-10-07 Thread Alexander Hristov
Hi Everyone,

The issue started occurring on Sunday. All the responses from one 
particular account(authenticated via MCC) appear empty. The issue occurs in 
both the Adwords and Google ADS API. It's worth mentioning that the data is 
visible in the Googgle ADS console. Can someone advise how to address this 
issue?

Kind regards,
Alex..

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/aefa91ec-468d-4164-8c79-bbfdd43e624bn%40googlegroups.com.


Re: How to fetch billable campaign cost with API/GAQL

2021-09-07 Thread Alexander Dyriavin
Thanks for the update. 

If its gonna be added to the API , would it be available on the new SDK ? 



On Tuesday, September 7, 2021 at 8:22:00 AM UTC+3 adsapi wrote:

> Hello Alexander,
>
> Thanks for getting back to us and sharing additional thoughts on the 
> billable cost.
>
> I will now raise a feature request for this. Please note that this request 
> is not a guarantee if this feature will be supported in the API soon. With 
> that, we suggest that you keep an eye to our blog 
> <https://ads-developers.googleblog.com/> for updates and new releases.
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MkZdq: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/1c6334bf-9531-448c-bc90-ea19aa2a6e7bn%40googlegroups.com.


Re: How to fetch billable campaign cost with API/GAQL

2021-09-03 Thread Alexander Dyriavin
Thanks for the reply. Yes, i would like to have it as the part of the 
campaign_budget/campaign  resource. 
Meaning that we can use GAQL to get the value of billed cost for selected 
camapign/camapigns . 
On Friday, September 3, 2021 at 6:35:32 AM UTC+3 adsapi wrote:

> Hi Alexander,
>
> Thank you for posting your concern.
>
> It appears that the billable cost can only be retrieved using 
> InvoiceService 
> <https://developers.google.com/google-ads/api/reference/rpc/v8/InvoiceService>.
>  
> With this, to confirm if my understanding to your concern is correct and to 
> create feature request for this, is it correct that you want to have a 
> field in campaign 
> <https://developers.google.com/google-ads/api/fields/v8/campaign?hl=en> 
> report and campaign_budget 
> <https://developers.google.com/google-ads/api/fields/v8/campaign_budget?hl=en>
>  that 
> can return the billable cost?
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MkZdq: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/c671c126-107c-452e-971b-d27180946878n%40googlegroups.com.


How to fetch billable campaign cost with API/GAQL

2021-09-01 Thread Alexander Dyriavin

Hello! 


Currently, I am looking for a way of getting billable cost per campaign. 
It looks like right now it's not a part of GAQL, because there is no 
mention regarding that in the documentation here -- 
[https://developers.google.com/google-ads/api/reference/rpc/v8/overview?hl=en](URL).
 


It can be retrieved in Invoice, which is looking kinda weird, because if 
there is a difference on the campaign/campaign_report actual cost that will 
be invoiced, it will be better to have access to the campaign performance 
report or campaign budget report, but right now there is not any way to get 
through GAQL request. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5f8994e0-f21b-40f0-bad7-478a44e17223n%40googlegroups.com.


Re: Problem with API

2021-06-29 Thread Alexander
Google will not help you with few things:
1. "The billing information cannot be used with the current customer 
status" error whe creating test client under tyour test account. I wanted 
to do it also to test my app, asked for help - no luck.
2. Using service account to make API calls. I set up all the things to make 
it work, got some sort of errors during API calls, asked for help - no luck.


вторник, 29 июня 2021 г. в 14:01:30 UTC+3, vladisla...@gmail.com: 

> The Google ADS API documentation (if I understood it correctly) states 
> that to create a test client account, you need to create a test manager 
> account. But when I try to create a test customer account in this way, I 
> get the error "The billing information cannot be used with the current 
> customer status." How can I create a test customer account through a test 
> manager account?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/47c6905a-c3dc-42c9-baff-7716ec537822n%40googlegroups.com.


Can't create campaigns under test account

2021-06-18 Thread Alexander
I have test acount (with the red badge) under one of my google accounts.
I use php and curl to make calls using REST API.
I get auth token with no problem so the next step is to try to get 
campaigns and ads from the test account. The problem is - I can create any!
When I go to Sub-account settings and start to make new account I get 
"Billing setups can not be used based on current status of the customer." 
error. In my understanding without this step completed I can't create any 
campaigns and ads.
Why I get this error and how should I create ads content under test acoount 
to develop and test my app?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3969d8a6-2b6b-4cb4-b51f-66bef8e57a9fn%40googlegroups.com.


Re: Query builder API

2021-06-11 Thread Alexander Hristov
Hi Matt,

Yes, indeed, that's exactly what I'm looking for.

Regards,
Alex.

On Tuesday, June 8, 2021 at 5:44:06 PM UTC+3 adsapi wrote:

> Hi Alex,
>
> Thanks for providing some more context. If I understand your request, you 
> are basically looking for a query validation tool in the API, rather than 
> in the browser so that the validation can be approached programmatically. 
> Please let me know if I've misunderstood or if anything else needs to be 
> added to the request.
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2I08Ds: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/3dc9cd8d-2862-42b5-bb9c-cb42aac480ebn%40googlegroups.com.


Clarification needed service account + API calls.

2021-06-09 Thread Alexander
I need to understand what am I doing wrong when get NOT_ADS_USER error.
What I have:
1. Google Ads account (xxx-xxx-).
2. Developer id for this account (xxx-xx).
3. "xxx xxx xxx" project in cloud console with Ads API enabled.
4. Service account (x...@xxx-xxx-xxx-316211.iam.gserviceaccount.com) with 
generated key and wide-domain delegation enabled.

My workflow:
1. Get auth token using JWT (success, no errors)
2. Make a call with this token (NOT_ADS_USER error)

Right now I have "test account" api enabled only but even with newly 
created test account with all the stuff done I get the same error. I tried 
to change logins, emails, add and remove "sub" field in JWT claim, nothing 
works. May be I'm missing something. 

Help me
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ef976fd3-4dae-4098-92bc-debbb7d3c3a7n%40googlegroups.com.


NOT_ADS_USER error using service account and REST API

2021-06-09 Thread Alexander
Hi!

I can't figure out what is the problem. I tried almost everything (test 
coentent, real content, different accounts, id, etc) and got the same error 
every time. 

I got the app in the console with ads api enabled.
I have service account with generated key and domain-wide delegation 
enabled.
I have developer token.

What I do (PHP with no google library):

1. Token request.

$JWT_header = $this->_base64url_encode(json_encode(array(
"alg" => "RS256",
"typ" => "JWT"
)));
$time = time();
$JWT_claim = $this->_base64url_encode(json_encode(array(
"iss" => $this->settings["api_service_email"],
"sub" => $this->settings["api_service_email"],
"scope" => "https://www.googleapis.com/auth/adwords;,
"aud" => "https://oauth2.googleapis.com/token;,
"exp" => $time + 3600,
"iat" => $time
)));
$key = openssl_pkey_get_private("file://".__DIR__."/key.pem");
openssl_sign(
$JWT_header.".".$JWT_claim,
$JWT_signature,
$key,
"SHA256"
);
$curl = curl_init();
$options = array(
CURLOPT_URL => "https://oauth2.googleapis.com/token;,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_VERBOSE => false,
CURLOPT_FAILONERROR => false,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => 
'grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer='
.$JWT,
CURLOPT_HTTPHEADER => array(
'Content-type: application/x-www-form-urlencoded',
)
);
curl_setopt_array($curl, $options);
$response = curl_exec($curl);
$response = json_decode($response, true);
curl_close($curl);

*This works well and I get the token.*
*With or without "sub" in claim data.*

2. ads API Call

$data = array(
"pageSize" => 1,
"query" => "SELECT ad_group_criterion.keyword.text, 
ad_group_criterion.status FROM ad_group_criterion WHERE 
ad_group_criterion.type = 'KEYWORD' AND ad_group_criterion.status = 
'ENABLED'",
);
$curl = curl_init();
$options = array(
CURLOPT_URL => "https://googleads.googleapis.com/v7/customers/".$api_client.
"/googleAds:search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_VERBOSE => true,
CURLOPT_FAILONERROR => false,
CURLOPT_POST => false,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer '.$api_token,
'developer-token: '.$api_dev_token,
'login-customer-id: '.$api_client,
'Content-Type: application/json; charset=utf-8',
)
);
curl_setopt_array($curl, $options);
$response = curl_exec($curl);
$response = json_decode($response, true);
curl_close($curl);

*This works, but I got an error every time.*
[authenticationError] => NOT_ADS_USER
[message] => User in the cookie is not a valid Ads user. 

Help me understand what is wrong???

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/526955c6-fc3a-4f8d-bcbf-766c76630603n%40googlegroups.com.


Re: Query builder API

2021-06-07 Thread Alexander Hristov
Hi Peter,

OK, so a bit of context: I'm currently dealing with migrating from the old 
Adwords API. With that in mind, much of the things involve adapting the API 
to an existing codebase(and a really large one at that), where a lot of the 
implementations rely heavily on mocking the gRPC services. Having said 
that, it would be hugely beneficial to be able to validate queries 
while(/in parralel) when running tests. Effectively some API where I could 
post a GAQL query, and get a response similar to the one in the qury 
builder. Generally I don't mind implementing the logic myself from the 
schemas as those mentioned in the original message but it feels hacky/risky 
considering it's not official and therefore could potentially change at any 
given time.

Regards,
Alex.

On Monday, June 7, 2021 at 8:35:03 AM UTC+3 adsapiforumadvisor wrote:

> Hi Alex,
>
> Thank you for questions.
>
> The query builder currently can only perform checks when users specify the 
> query or construct the query using the browser.
>
> That said, so I can more accurately capture the feature you are 
> suggesting, could you provide the step by step process of what you are 
> currently imagining so I can create a feature request later on?
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2I08Ds: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/947978a3-2c86-46f1-81f5-3e66902d2818n%40googlegroups.com.


Query builder API

2021-06-03 Thread Alexander Hristov
Hey everyone,

This may come off as a bit strange but I was wondering if you might 
consider adding something like this. The query builder works in browser and 
it reads the data from locations such as this 
 and 
all the processing is done by the browser. The reason for having an API is 
to automate tests. Hypothetically I could pull those JSON files and 
implement them on my own, but I'm not sure how much I'd be able to rely on 
them long term. So as a two part question, would such an API be possible 
and if not, how much of a leap of faith would it be to use those json files?

Kind regards,
Alex.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/aaf78969-1418-4796-ad58-095e2d4dca88n%40googlegroups.com.


InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in ManagedCustomerServiceInterface

2021-05-04 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi team,

We have the following problem with Adwords API (while 
using ManagedCustomerServiceInterface).

Soap request:

 http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>  
https://adwords.google.com/api/adwords/mcm/v201809; 
soapenv:mustUnderstand="0"> https://adwords.google.com/api/adwords/cm/v201809;>CLIENT_CUSTOMER_ID
 
https://adwords.google.com/api/adwords/cm/v201809;>REDACTED
 
https://adwords.google.com/api/adwords/cm/v201809;>USER_AGENT
 
https://adwords.google.com/api/adwords/cm/v201809;>false
 
https://adwords.google.com/api/adwords/cm/v201809;>false
 
   https://adwords.google.com/api/adwords/mcm/v201809;> 
 https://adwords.google.com/api/adwords/cm/v201809;>AccountLabels
 
https://adwords.google.com/api/adwords/cm/v201809;>CanManageClients
 
https://adwords.google.com/api/adwords/cm/v201809;>CurrencyCode
 
https://adwords.google.com/api/adwords/cm/v201809;>CustomerId
 
https://adwords.google.com/api/adwords/cm/v201809;>DateTimeZone
 
https://adwords.google.com/api/adwords/cm/v201809;>Name
 
https://adwords.google.com/api/adwords/cm/v201809;>TestAccount
 
   

SOAP response:


http://schemas.xmlsoap.org/soap/envelope/;>


soap:Server
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro

https://adwords.google.com/api/adwords/mcm/v201809; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809;>

InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro

ApiException
http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns2:InternalApiError">



InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

InternalApiError

UNEXPECTED_INTERNAL_API_ERROR







Thanks.
WBR,
Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/58bbe231-00e7-4bcd-89fa-9b81eabcdfd2n%40googlegroups.com.


Re: Incompatible fields in the CAMPAIGN_PERFORMANCE_REPORT

2021-04-22 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi Xiaoming,

Thanks for quick response. My question is about including these 
incompatible fields into the documentation 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#externalconversionsource>.
 
They are not presented in the "Not compatible with the following fields:" 
subsection.

On Thursday, April 22, 2021 at 6:02:13 PM UTC+3 adsapiforumadvisor wrote:

> Hi Alexander,
>
> Thank you for reaching out. I work with Anthony. If you encounter these 
> errors that means the fields are not compatible with the 
> ExternalConversionSource field. Please do not select them if you are 
> querying on the ExternalConversionSource. 
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FY5TK: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/9c0c4f93-7e36-4182-9d13-e7100f578e67n%40googlegroups.com.


InternalApiError.UNEXPECTED_INTERNAL_API_ERROR instead of expected CustomerSyncError.TOO_MANY_CHANGES

2021-04-22 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi Team,

We have the following problem with Adwords API.

The call of the CustomerSyncServiceInterface.get() method returns 
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR for the list of around 2600 
campaignIds (all campaigns for such clientCustomerId). If we splitting this 
list of campaignIds into small chunks, then such call 
returns CustomerSyncError.TOO_MANY_CHANGES.

Is it possible to have the same CustomerSyncError.TOO_MANY_CHANGES 
exception for the first case?

Thanks in advance.
WBR,
Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/32644b4c-3849-4b4d-9d80-85e8f34d675fn%40googlegroups.com.


Re: Incompatible fields in the CAMPAIGN_PERFORMANCE_REPORT

2021-04-22 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi Anthony,

Thank you for your response. However we find that there are additional 
incompatible with ExternalConversionSource fields that aren't mentioned 
there (we're receiving INVALID_FIELD_NAME_FOR_REPORT):
- CostPerAllConversion
- CostPerCurrentModelAttributedConversion
- AllConversionRate.

Also also we're receiving SelectorError.INVALID_FIELD_SELECTION for the 
combination of ExternalConversionSource with the following fields:
- CostPerConversion 
- ConversionRate

If we're removing these 5 fields then report works.
Thanks!

On Tuesday, April 13, 2021 at 11:11:07 PM UTC+3 adsapiforumadvisor wrote:

> Hi Alexander,
>
> The field ExternalConversionSource 
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#externalconversionsource>
>  
> cannot be selected if the fields mentioned in your error are also in the 
> report query. For a clearer look at the incompatible fields, you can click 
> on "Not compatible with the following fields:" from the link I shared. 
>
> Regards,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FY5TK: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/9de6e090-1cb0-4c19-ae51-fb52516c6d36n%40googlegroups.com.


Re: Extracting conversions, conversion value, conversion action and conversion action name through the API.

2021-04-14 Thread Alexander Hristov
Hi,

Thanks for the reply. Could you please elaborate on that? I modified the 
second example to set the ClientCustomerId in the client(second example) 
but I still get the exact same errors when I request metrics.

Kind regards,
Alex.

On Wednesday, April 14, 2021 at 5:50:38 AM UTC+3 adsapiforumadvisor wrote:

> Hi Alexander,
>
> Thank you for reaching out. 
>
> Generally, metrics are associated to entities belonging to a specific 
> client account. That said, retrieving these metrics would require customers 
> to specify which client account ID (customer ID) they wish to retrieve the 
> metrics from.
>
> In your scenario, it appears that you are querying the metrics using a 
> manager account. This is unfortunately not possible due to the above 
> mentioned details.
>
> To avoid this error, you need to ensure that the customer ID you specify 
> in your request header (customer_id / ClientCustomerId field) belongs to a 
> client account under your manager account.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FY6tx: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/1d579890-7d37-4f95-a55a-18e098313da3n%40googlegroups.com.


Extracting conversions, conversion value, conversion action and conversion action name through the API.

2021-04-13 Thread Alexander Hristov
Hey everyone,

I've tested several different solutions but none of them seems to be the 
right answer, In essence I'm afer the following:

  SELECT
customer.id,
metrics.conversions,
metrics.conversions_value,
segments.conversion_action,
segments.conversion_action_name
  FROM customer

I'm using an mcc login in this particular case. Here's what I've tried so 
far:

credentials = Credentials(
None,
refresh_token="**refresh_token**",
token_uri="**uri**",
client_id="**client_id**",
client_secret="**client_secret**",
)
client= GoogleAdsClient(
credentials,
login_customer_id = '**login_customer_id**',
developer_token="**developer_token",
)
service = client.get_service("GoogleAdsService", 'v6')
response = ga_service.search_stream(customer_id=client.login_customer_id, 
query=query)
for batch in response:
for row in batch.results:
logger.debug(row)

Which(understandably) returns an error: 

...*errors { error_code { query_error: REQUESTED_METRICS_FOR_MANAGER } 
message: "Metrics cannot be requested for a manager account. To retrieve 
metrics, issue separate requests against each client account under the 
manager account." }...*

So with that, I decided to go over each of the accessible customers:

ee = []
rr = []

client_ids = client.get_service(
'CustomerService',
version='v6',
).list_accessible_customers().resource_names
for client_id in client_ids:
client_id = client_id.split('/')[1]
logger.debug(client_id)
try:
results = iter(
service.search_stream(client_id, query),
)
except Exception as e:
ee.append(e)
continue
for xxx in results:
rr.append(xxx)

In which case all the requests fail with the following error:

Request made: ClientCustomerId: *, Host: googleads.googleapis.com:443, 
Method: /google.ads.googleads.v6.services.GoogleAdsService/SearchStream, 
RequestId: , IsFault: True, FaultMessage: Metrics cannot be requested 
for a manager account. To retrieve metrics, issue separate requests against 
each client account under the manager account.

All except for one, the one being the manager account itself, which fails 
with the first error. So The question is what am I doing wrong here?

Kind regards,
Alex.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00a3a583-f607-470d-a0cb-141136794c04n%40googlegroups.com.


Incompatible fields in the CAMPAIGN_PERFORMANCE_REPORT

2021-04-13 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hello team,

We're having the following problem with Adwords API for the 
CAMPAIGN_PERFORMANCE_REPORT:

HTTP Response Code: 400, FieldPath: ExternalConversionSource, Trigger: 
Cannot select a combination of ExternalConversionSource and 
AbsoluteTopImpressionPercentage,ActiveViewCpm,ActiveViewCtr,ActiveViewImpressions,ActiveViewMeasurability,ActiveViewMeasurableCost,ActiveViewMeasurableImpressions,ActiveViewViewability,AllConversionRate,AverageCost,AverageCpc,AverageCpe,AverageCpm,AverageCpv,AverageFrequency,AveragePageviews,AveragePosition,AverageTimeOnSite,BounceRate,ClickAssistedConversionValue,ClickAssistedConversions,ClickAssistedConversionsOverLastClickConversions,Clicks,ContentBudgetLostImpressionShare,ContentImpressionShare,ContentRankLostImpressionShare,Cost,CostPerAllConversion,CostPerCurrentModelAttributedConversion,Ctr,EngagementRate,Engagements,GmailForwards,GmailSaves,GmailSecondaryClicks,ImpressionAssistedConversionValue,ImpressionAssistedConversions,ImpressionAssistedConversionsOverLastClickConversions,ImpressionReach,Impressions,InteractionRate,InteractionTypes,Interactions,InvalidClickRate,InvalidClicks,NumOfflineImpressions,NumOfflineInteractions,OfflineInteractionRate,PercentNewVisitors,RelativeCtr,SearchAbsoluteTopImpressionShare,SearchBudgetLostAbsoluteTopImpressionShare,SearchBudgetLostImpressionShare,SearchBudgetLostTopImpressionShare,SearchClickShare,SearchExactMatchImpressionShare,SearchImpressionShare,SearchRankLostAbsoluteTopImpressionShare,SearchRankLostImpressionShare,SearchRankLostTopImpressionShare,SearchTopImpressionShare,TopImpressionPercentage,VideoQuartile100Rate,VideoQuartile25Rate,VideoQuartile50Rate,VideoQuartile75Rate,VideoViewRate,VideoViews,
 
Type: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT

However, this field (and also AllConversionRate and CostPerAllConversion) 
is included in the documentation 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#externalconversionsource>
.

Also, these fields (ExternalConversionSource,  AllConversionRate 
and CostPerAllConversion) are missing in the result of the following call:

ReportDefinitionField[] reportDefinitionFields =
reportDefinitionService.getReportFields(
ReportDefinitionReportType.fromString("CAMPAIGN_PERFORMANCE_REPORT"));

What can be the reason of such behaviour?

Thanks in advance!

WBR,
Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f5bad950-db2a-4fda-b521-b71a29b46cfcn%40googlegroups.com.


Re: Attributes mapping between UI and API

2021-02-05 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Thank you again, Anthony!

On Wednesday, February 3, 2021 at 10:35:22 PM UTC+3 adsapiforumadvisor 
wrote:

> Hi Alexander,
>
> You will find the Final URL suffix in the URL options of the Settings tab 
> of either campaigns or ad groups. I've attached a screenshot for reference.
>
> Cheers,
>
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2BbiKE: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/771b8a67-1406-4dc4-816e-6386a5173a63n%40googlegroups.com.


Re: Attributes mapping between UI and API

2021-02-02 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi Anthony,

Thank you very much for so helpful answer!
Could you please also tell me the mapping from the finalUrlSuffix 
<https://developers.google.com/adwords/api/docs/appendix/reports/adgroup-performance-report#finalurlsuffix>
 (from 
the Ad Group Performance and the Campaign Performance reports) to the 
Google Ads UI attribute (does the direct mapping exist)?

Best regards,
Alexander
On Tuesday, February 2, 2021 at 10:38:20 PM UTC+3 adsapiforumadvisor wrote:

> Hello,
>
> LOSTIMPRSN -n/s
> LOSTIMPRSNRNK - SearchRankLostImpressionShare
> LOSTIMPRSNBUDGET - n/a
> IMPRSNSHARE - SearchImpressionShare
>
> It doesn't appear that there is a direct mapping to the LOSTIMPRSN or 
> LOSTIMPRSNBUDGET. 
>
> The DisplayUrl from the Ad Performance Report would map to what you see on 
> the Display path for text ads minus the path parameters. 
>
> Regards,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2BbiKE: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/f1813977-2abf-486a-af64-a879597b8580n%40googlegroups.com.


Re: Attributes mapping between UI and API

2021-02-01 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi Peter,

These attributes are from the Google Ads UI and we're trying to find 
matches for them in the API (or maybe most similar to them). We haven't 
found these matches by ourselves, so we're asking your help with it (and 
with a vice versa question about displayUrl and finalDisplayUrl).

Best regards,
Alexander

On Tuesday, February 2, 2021 at 6:38:05 AM UTC+3 adsapiforumadvisor wrote:

> Hi Alexander,
>
> I work with Anthony and allow to assist you for now.
>
> Could you confirm where you have extracted the below naming standards of 
> the fields :
>
> LOSTIMPRSN
> LOSTIMPRSNRNK
> LOSTIMPRSNBUDGET
> IMPRSNSHARE
>
> I asked because our team unfortunately does not have a direct mapping for 
> the above, to the impression related fields in the AdWords API. Also, you 
> may refer here 
> <https://developers.google.com/adwords/api/docs/appendix/reports/all-reports> 
> for the complete list of supported fields in the AdWords API reports. The 
> document should include the 'impression' related fields.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2BbiKE: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/8a41bc25-1f26-4b45-b8c6-cf37030d184fn%40googlegroups.com.


Re: Attributes mapping between UI and API

2021-02-01 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hi,

Thank you for your answer.

LOSTIMPRSN
LOSTIMPRSNRNK
LOSTIMPRSNBUDGET

What about these attributes? I could'n see a direct match for them.
Also,  IMPRSNSHARE, is it SearchImpressionShare or SearchTopImpressionShare?

And could you please answer to my second question about corresponding 
attributes in the UI? There is no a direct match too.

Thank you in advance,
Alexander

On Friday, January 29, 2021 at 9:13:03 PM UTC+3 adsapiforumadvisor wrote:

> Hi Alexander,
>
> If you take a look at an individual report type page such as the Keywords 
> Performance Report, you can map an API field to the UI field by looking at 
> the Display Name property and vice versa. For example, the 
> SearchBudgetLostAbsoluteTopImpressionShare 
> <https://developers.google.com/adwords/api/docs/appendix/reports/keywords-performance-report#searchbudgetlostabsolutetopimpressionshare>
>  
> will point to the "Search lost abs. top IS (budget)".
>
> Please let me know if you have any issues finding any specific fields.
>
> Cheers,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2BbiKE: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/a3428e5b-c79b-487f-b892-29d6796c7594n%40googlegroups.com.


Attributes mapping between UI and API

2021-01-28 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hello,

I have a couple of questions regarding mapping attributes between Google 
Ads UI and report via API (both Adwords API and Google Ads API):

1. Here is a list of attributes in the UI:

SEARCHBGTLOSTABSIMPRSNSHARE
SEARCHRNKLOSTABSIMPRSNSHARE
LOSTIMPRSN
LOSTIMPRSNRNK
LOSTIMPRSNBUDGET
IMPRSNSHARE

What are their mapping in the reporting via API (e.g. here 
<https://developers.google.com/adwords/api/docs/appendix/reports#available-reports>)?
 
Or maybe what are more suitable attributes to match them?

2. And a vice versa question. What are corresponding attributes for the 
following in the UI:

displayUrl 
<https://developers.google.com/adwords/api/docs/appendix/reports/ad-performance-report#displayurl>
 from 
the Ad Performance report
finalDisplayUrl 
<https://developers.google.com/adwords/api/docs/appendix/reports/adgroup-performance-report#finalurlsuffix>
 from 
the Ad Group Performance and the Campaign Performance reports

Thank you, 
Alexander 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bb412323-9a65-4dc2-a8af-a48d5e2c357fn%40googlegroups.com.


Loading Store visits conversion along with CriterionId from Ad Performance Report

2020-12-15 Thread Alexander Barabash
Hello, 

We load conversions from *Ad Performance Report* and we discovered an 
unexpected behavior of the API. If we add the *CriterionId *field into the 
request, *Store visits* conversion is not returned only for one particular 
account. At the same time, we successfully load *Store visits* along with 
*CriterionId 
*for all other accounts. For the affected account we load all other 
conversions. So it looks like we have a problem with a single conversion 
for a single account. Can you please help us solve the issue?

If we use this request, *Store visits* are not loaded for the affected 
account but are successfully loaded for other accounts.

*https://adwords.google.com/api/adwords/cm/v201809;>*
**
*ConversionTypeName*
* CampaignName*
* AllConversions*
*CriterionId*
**
*20201101*
*20201130*
**
**
*Ad Performance Report*
*AD_PERFORMANCE_REPORT*
*CUSTOM_DATE*
*CSV*
**

This request returns* Store visits* for the affected account

*https://adwords.google.com/api/adwords/cm/v201809;>*
**
*ConversionTypeName*
*CampaignName*
*AllConversions*
**
*20201101*
*20201130*
**
**
*Ad Performance Report*
*AD_PERFORMANCE_REPORT*
*CUSTOM_DATE*
*CSV*
**

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8f70e4d9-ff2f-4a5f-b99c-407d41eef98fn%40googlegroups.com.


Wrong types for the CallStartTime and the CallEndTime fields (the Call Metrics Call Details report)

2020-11-05 Thread 'Alexander Neroslavsky' via AdWords API and Google Ads API Forum
Hello,

The CallStartTime and CallEndTime fields have the Long type according to 
your documentation 
(https://developers.google.com/adwords/api/docs/appendix/reports/call-metrics-call-details-report#callendtime).
 
But actually the values have the DateTime format (e.g. "Sep 28, 2020 
2:21:36 PM").

Will this inconsistency be fixed?

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/15ebef70-06a8-4254-9435-923becf8b65en%40googlegroups.com.


Re: Universal App Campaign not included to AdGroup Performance report

2019-12-20 Thread Alexander de Wolff
Hello,

I was wondering if AdGroup level reporting of App Campaigns is currently 
planned to be added at some point.

Thanks,

Alexander de Wolff

On Wednesday, February 27, 2019 at 12:23:34 PM UTC-8, 
googleadsapi-forumadvisor wrote:
>
> Hello Oksana, 
>
> The AdGroup Performance Report is not one of the supported report types 
> for Universal App Campaigns. You may refer to this section 
> <https://developers.google.com/adwords/api/docs/guides/mobile-app-campaigns#reporting>
>  of 
> the guide for all the supported report types. Let me know if you have any 
> other questions.
>
> Regards,
> Bharani, AdWords API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=1-570325636=en=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/76b82bfb-2daa-476a-99ab-3db29516bf8e%40googlegroups.com.


Re: ad schedule not included in CRITERIA_PERFORMANCE_REPORT

2019-12-18 Thread Alexander de Wolff
Hi Mitchell,

I will look into the Campaign Ad Schedule Target Report.

Thanks for the reply!

On Tuesday, December 17, 2019 at 9:07:22 AM UTC-8, adsapiforumadvisor wrote:
>
> Hi Alexander,
>
> Thank you for reaching out. You can use the Campaign Ad Schedule Target 
> Report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-ad-schedule-target-report>
>  
> to get campaign metrics associated with ad schedules. If you want to get 
> specific details about the schedule, you have to perform a get request 
> using the CampaignCriterionService 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService>
>  for 
> AD_SCHEDULE 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.AdSchedule>
>  
> type.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UOEgtV: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/e0fed585-3222-4714-9cc2-056d3c5a3b9c%40googlegroups.com.


ad schedule not included in CRITERIA_PERFORMANCE_REPORT

2019-12-16 Thread Alexander de Wolff
I'm trying to pull the ad schedules for all of our ads which are run on a 
schedule to create an alert which will check whether ads are activated when 
they are supposed to.

Following this post 
 I 
came up with the following solution:
I'm trying to pull this info using the following report definition (Ruby 
format, minimalized for debugging):

  criterion_definition = {
>   selector: {
>   fields: ['Criteria', 'CriteriaType'],
>   predicates: [{
>field: 'CriteriaType',
>operator: 'EQUALS',
>values: ['AD_SCHEDULE']
>}]
>   },
>   report_name: 'ad_schedule_test',
>   report_type: 'CRITERIA_PERFORMANCE_REPORT',
>   download_format: 'CSV',
>   date_range_type: 'ALL_TIME',
>   }
>

When I leave out the predicate for selecting only AD_SCHEDULE it returns a 
large amount of results, with CriteriaTypes such as Keyword, Age, User 
Interest. However, it won't return any Ad_Schedule despite the fact that we 
have quite a few campaigns using ad schedule, as shown in the screenshot. 
Is there an issue with the report definition I'm using? Or is there a 
different report type that would work better for my intended use case?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c3a73622-adf9-4460-90c0-934b6a43d462%40googlegroups.com.


downloading the verticals.csv automated

2019-12-02 Thread Alejandro Moncada Alexander
Hi ,

Is the a way to download this file on automated basis without the use of 
the API. I am trying to create some reports using this values.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c40645cd-dd92-426b-ba6b-fe60e43a315d%40googlegroups.com.


Re: The new discovery campaigns have an empty AdvertisingChannelType

2019-08-15 Thread Alexander
Express is also a possible value (which is missing in my first post). 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cd1b206e-60db-4ae0-a88e-a68a11d9eb15%40googlegroups.com.


The new discovery campaigns have an empty AdvertisingChannelType

2019-08-15 Thread Alexander
According to 
https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#advertisingchanneltype
the AdvertisingChannelType has one of following values:
Unknown,
Search,
Display,
Shopping,
Video,
Multi Channel.

But the new discovery campaigns have an empty string instead of one of 
these values. This is unexpected and causes problems for us. Wouldn't it be 
better to report Unknown instead? But even if you report something new, 
wouldn't it be better to report "Discovery" instead of an empty string?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/417c7832-5fe0-4e61-8c9c-d98e26c5d4a8%40googlegroups.com.


Bulk upload

2019-08-15 Thread Alexander
Is there a way to access the "bulk upload" from Google Ads UI through 
adwords API ( or the new ads API) ?
In the UI it is available at Tools > Bulk Actions > Uploads

I know that "bulk upload" is possible in Google Ads Scripts, but is it also 
possible in adwords API or Ads 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/a083e2c7-5646-4cd4-aaec-458230813f3a%40googlegroups.com.


Re: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE for conversion_last_conversion_date

2019-07-13 Thread Alexander
Actually, it is easy. According to 
https://developers.google.com/google-ads/api/fields/v2/metrics, 
conversion_last_conversion_date IS ONLY selectable with resource 
"customer". But since it is not in the metrics-list of "customer" ( 
https://developers.google.com/google-ads/api/fields/v2/customer ), it is 
also NOT selectable FROM "customer".
Apperently, this is not considered a bug. Just a metric you can't select in 
any query.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/761cc54d-692a-414a-adad-81f5062c24e7%40googlegroups.com.


EXPECTED_FILTERS_ON_DATE_RANGE

2019-05-10 Thread Alexander
SELECT  metrics.conversions, metrics.interactions, metrics.average_cpm, 
metrics.engagements, metrics.interaction_event_types, metrics.average_cpv, 
metrics.engagement_rate, segments.device, metrics.all_conversions, 
segments.week, metrics.video_quartile_25_rate, metrics.gmail_forwards, 
metrics.active_view_impressions, metrics.video_view_rate, metrics.clicks, 
metrics.all_conversions_from_interactions_rate, 
metrics.active_view_measurable_impressions, metrics.cost_per_conversion, 
metrics.average_cpc, metrics.video_quartile_50_rate, 
metrics.active_view_measurability, metrics.ctr, 
metrics.all_conversions_value_per_cost, metrics.average_cpe, 
metrics.all_conversions_from_interactions_value_per_interaction, 
metrics.video_quartile_100_rate, segments.ad_network_type, 
metrics.interaction_rate, metrics.impressions, 
metrics.video_quartile_75_rate, metrics.active_view_viewability, 
metrics.gmail_saves, metrics.all_conversions_value, metrics.video_views, 
metrics.gmail_secondary_clicks, metrics.value_per_conversion, 
metrics.active_view_cpm, metrics.active_view_ctr, 
metrics.active_view_measurable_cost_micros, metrics.cost_micros, 
segments.date  FROM ad_group_audience_view WHERE segments.date BETWEEN 
"2019-05-09" AND "2019-05-09" LIMIT 100


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


I have a filter on segments.date. Why do I need additional filters on 
segments.week? Is this a bug, or expected behaviour?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dfbf0502-732a-422c-a64a-eb21488bf5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the keyword which triggered the phone call?

2019-05-08 Thread Alexander Nitschke
Sorry for "warming up" an older thread, but 
1) the answers presented didn't really help to solve the question, and you 
should know this: imagine a scenario with 100 calls on a day on 10 
criteria. The Call Metrics Call Detail Report only give the adgroup level 
for each call while the Criteria Performance Report gives you conversion 
information (-> all calls longer than a defined time) per keyword. But 
there's no way to "mix and match" these two reports except random 
assignments.
2) I see nowadays a keyword attribution in the Ads GUI for the call details 
which must be pretty new.
So I think it's a fair question from me if and when this new call detail 
attribution level will be available in the Call Metrics Call Details 
Report, since our customers want this in our application which optimizes 
criteria bids.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a3cd83f0-1d63-4e59-a457-2c4a5dc6a04b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why there is no date segment in campaign_audience_view?

2019-04-26 Thread Alexander
There is no date segment in campaign_audience_view:

https://developers.google.com/google-ads/api/docs/fields/campaign_audience_view

This is pretty limiting and makes it hard to work with. The 
ad_group_audience_view, for example, has the date-segment:

https://developers.google.com/google-ads/api/docs/fields/ad_group_audience_view

So there is no obvious reason why it is not available on campaign-level.

Can you pls add the date-segment to the campaign_audience_view?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/080e31af-acb3-4e90-b720-6dbee37c4094%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Ads API: How to identify ENUM data type?

2019-04-18 Thread Alexander Belozerov

Hello there,
What is the best way to identify the data type that is shown as ENUM when 
getting a response from this method in python library:

search_google_ads_fields

I was assuming that it is always "string" but just run into an example 
where it is a string for one customer id and an integer for another.

Examples are
 advertising_channel_sub_type, advertising_channel_sub_type

both can be a string as "DISPLAY_GMAIL_AD" and an integer as 7.

I need to save this data in one place for reporting purposes.
My question are:
How can i get the data type for ENUM?
 and why is it different for the same fields in different accounts?

Thanks,
Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6411e8c7-0f3e-41ae-a2cc-1344a21f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: gzip compression in the new Google Ads API?

2019-04-18 Thread Alexander

I am concerned about the amount of network traffic between Ads API and my 
App. Compressing files at my end would not help to reduce network traffic. 
Is there an option in the API or the client libraries to enable compression?


On Wednesday, April 17, 2019 at 8:43:40 PM UTC+2, googleadsapi-forumadvisor 
wrote:
>
> Hello Alexander,
>
> Since the report data returning as typed objects and no longer writing on 
> the files. You have to handle it in your code to write them into files and 
> compress the files programatically. I will let my team know regarding your 
> concern and to have the code samples for this.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=2-700526258=en=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3dfe1baa-e50b-4512-8484-b74b8fe0b388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


gzip compression in the new Google Ads API?

2019-04-17 Thread Alexander
Is it possible to compress the data which is coming from the API?
Something like it was possible to download GZIPPED_CSV files in the old 
Adwords API?
I know that a binary format is used which should reduce the data-size, but 
true compression may be more effective.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/682f2f53-4ac7-4fb6-9c21-fa0b6d8555d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign_bid_modifier resource contains only bid_modifiers for criterion_id 8000

2019-04-17 Thread Alexander
The criterion_id is always 8000.
 

> SELECT  campaign_bid_modifier.criterion_id, 
> campaign_bid_modifier.interaction_type.type, 
> campaign_bid_modifier.bid_modifier, campaign_bid_modifier.campaign, 
> campaign_bid_modifier.resource_name  FROM campaign_bid_modifier  LIMIT 1000
>

I checked on multiple accounts.

Doesn't campaign_bid_modifier resource contain other criterions (like 
Devices or Geo or ..) ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/284e60dd-5c65-473d-bf33-de02febd688d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Ads: 504 Deadline Exceeded

2019-04-15 Thread Alexander Belozerov

Hi there,
Im getting 504 Deadline Exceeded when running following query using python 
library:

'SELECT name, data_type, is_repeated'


I wonder if the problem is that im querying a huge account with 3million 
ads? And if so what is the best way to fix this?
This same query works just fine with smaller accounts.

Thanks,
Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/496f7ae5-db86-4dbf-a472-c6ff8a366834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: dynamic_search_ads_search_term_view returns no resource_name

2019-04-15 Thread Alexander
Is maybe related to 
https://groups.google.com/forum/#!searchin/adwords-api/customer_client$20limit%7Csort:date/adwords-api/3TVG4hcsRDQ/-3dGY-juCAAJ

It works better without LIMIT clause...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8c44e22f-64bc-4555-8525-faa23e74ea9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


customer_client causes Internal error if query contains LIMIT

2019-04-12 Thread Alexander
If a query contains a limit clause then customer_client always throws an 
Internal Error
 

> SELECT  customer_client.hidden, customer_client.client_customer, 
> customer_client.level, customer_client.resource_name  FROM customer_client  
> LIMIT 100
>

Without LIMIT the query works as expected.

I tested it on a non-MCC accounts. Maybe this is the problem.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/97673e86-34ef-4165-9c92-fb73b2bcfcd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: dynamic_search_ads_search_term_view returns no resource_name

2019-04-12 Thread Alexander
Can't reproduce anymore. Maybe it was a problem at our end. Sorry.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/48436425-95ea-4c5a-8122-939e68990eb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


dynamic_search_ads_search_term_view returns no resource_name

2019-04-12 Thread Alexander
The query

SELECT dynamic_search_ads_search_term_view.resource_name FROM 
> dynamic_search_ads_search_term_view
>
 
returns rows without resource_name. Or the resource_name is an empty 
string. It's hard to distinguish in java client library.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9a17667c-182e-4071-87dd-6f0b8c188ce0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Internal Error for detail_prlacement_view

2019-04-11 Thread Alexander
Ive build a query with the 
https://developers.google.com/google-ads/api/docs/query/interactive-gaql-builder:
 

> SELECT  detail_placement_view.resource_name, 
> detail_placement_view.placement_type, detail_placement_view.placement, 
> detail_placement_view.target_url, 
> detail_placement_view.group_placement_target_url, 
> detail_placement_view.display_name  FROM detail_placement_view  LIMIT 100
>

It always results in  "code=INTERNAL, description=Internal error 
encountered."

Do I do something wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a54bb528-3b90-4a78-b0f1-cfa2559ffeb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE for conversion_last_conversion_date

2019-04-09 Thread Alexander
Thank you.

According to 

https://developers.google.com/google-ads/api/docs/fields/metrics#metricsconversion_last_conversion_date

it should be selectable with customer (no other resource is in the 
"selectable with" list). So if it is not selectable with customer, is it 
selectable at all?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0bb96cdc-bea5-4715-b89e-3af992366e2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is the best way to get list of non-mcc accounts?

2019-04-05 Thread Alexander Belozerov
Hi Dannison,
Thank you for your message,
Could you please help with the query?

When i do something like this with my master MCC:
'SELECT customer_client.client_customer, customer.manager FROM 
customer_client'

I get customer.manager = true for all accounts. So this particular query 
doesn't solve the issue. But i wonder if you meant to use customer.manager 
in some other way?


Thanks,
Alex





On Friday, 5 April 2019 03:12:17 UTC+1, googleadsapi-forumadvisor wrote:
>
> Hi Alex,
>
> You could use a filter for the field customer.manager 
> 
>  
> and set this to *FALSE* to return only client accounts in your query. Let 
> me know if this helps.
>
> Regards,
> Dannison
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 04/04/19 22:29:58 dju...@gmail.com  wrote:
>
> Hello there,
> Ive got a tree-like mcc structure, such as that mcc of multiple levels on 
> top of each other.
>
> What is the best way to get a list of non-mcc customer ids in order to be 
> able to query stats for them (it is not possible to query for mcc account)?
>
>
> This code return all accounts under master mcc including mcc:
> query = SELECT customer_client.client_customer FROM customer_client
> response = ga_service.search(customer_id = MASTER_MCC, query = query)
>
> I wonder what is the best way to get non-mcc accounts on all levels?
>
> Thanks,
> Alex
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/adwords-api/b579b039-4785-404c-909e-251d5ae755a4%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5bf7c98f-114c-45b0-8b7a-9b78f3bfd51c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE for conversion_last_conversion_date

2019-04-05 Thread Alexander
The query builder 
(https://developers.google.com/google-ads/api/docs/query/interactive-gaql-builder)
 
gave me following output:

 

> SELECT
>  metrics.conversion_last_conversion_date
> FROM
> customer
> LIMIT
> 100
>

But the java-client-library gives me following error: query_error: 
PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
  message: "Cannot select or filter on the following metrics: 
\'conversion_last_conversion_date\'(could not support requested resources: 
\'CUSTOMER\'), since metric is incompatible with the resource in the FROM 
clause or other selected segmenting resources."

How can I select metrics.conversion_last_conversion_date? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d89857e1-0c23-4a0a-90e6-4584c7a3ba45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What is the best way to get list of non-mcc accounts?

2019-04-04 Thread Alexander Belozerov
Hello there,
Ive got a tree-like mcc structure, such as that mcc of multiple levels on 
top of each other.

What is the best way to get a list of non-mcc customer ids in order to be 
able to query stats for them (it is not possible to query for mcc account)?


This code return all accounts under master mcc including mcc:
query = SELECT customer_client.client_customer FROM customer_client
response = ga_service.search(customer_id = MASTER_MCC, query = query)

I wonder what is the best way to get non-mcc accounts on all levels?

Thanks,
Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b579b039-4785-404c-909e-251d5ae755a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Migration to Google Ads API - Get list of all accounts under MCC

2019-04-04 Thread Alexander Belozerov
Hi there,
Im having similar issue,
this would get me list of all accounts, including mcc.

For example if we have tree-like structure with master MCC and multiple 
level MCCs under it, what would be the best way to get a list of all 
non MCC account under master MCC?
This is in order to collect reporting data for all our accounts.

Thanks,
Alex



On Wednesday, 3 April 2019 21:26:36 UTC+1, googleadsapi-forumadvisor wrote:
>
> Hi Marcel,
>
> You can try using the GoogleAdsService 
> 
>  and 
> set the query to the one that I provided earlier. You can find a similar 
> API call here 
> 
> .
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 04/03/19 12:21:39 marce...@d1-solutions.com  wrote:
>
> Hi Anthony
>
> Thanks for getting back. I've tried the CustomerClientService with Python
>
> service = client.get_service('CustomerClientService')
> query = ('SELECT customer_client.resource_name,'
> 'customer_client.client_customer,'
> 'customer_client.level, customer_client.hidden,'
> 'customer_client.level'
> 'FROM customer_client');
> response = service.search(root_account_id, query=query, page_size=100)
>
> Where root_account_id is the ID of the root level MCC account. But I get
>
> AttributeError: 'CustomerClientServiceClient' object has no attribute 
> 'search'
>
> Is this the right service? If not, what service should be used?
>
> Regards Marcel
>
> On Monday, 1 April 2019 23:24:05 UTC+2, googleadsapi-forumadvisor wrote:
>
> Hi Marcel,
>
> To get the account hierarchy via Google Ads API, you could use the 
> customer_client 
>  
> resource. 
> Through which you can get only the resource name, level, Boolean value of 
> hidden status and Client_customer details of the accounts under your 
> manager account. To get these details the OAuth credentials used to make 
> the API call should be of manager account and the ClientCustomerId passing 
> in the header should be of manager account. Below is the sample query for 
> your reference. 
>
> Please note that, you have to iterate through all the customers to get the 
> descriptive_name.
>
> query = ('SELECT customer_client.resource_name,
> customer_client.client_customer,
> customer_client.level, customer_client.hidden,
> customer_client.level
> FROM customer_client');
>
> Please let me know if you have any further questions.
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 04/01/19 10:55:22 marce...@d1-solutions.com wrote:
>
> Hi
>
> We're in the process of migrating from AdWords API to the new Google Ads 
> API. Our Python tool currently loops over all accounts under the MCC root 
> account and downloads various reports for all accounts on a daily basis.
>
> From what I understand, we also have to place calls for each account again 
> with the Google Ads API. Therefore, we also need to know all accounts under 
> the root level MCC account, but I'm already struggling with this.
>
> In the AdWords API we would do something like this: I would use 
> ManagedCustomerService.get(selector) with an appropriate selector and 
> then loop over the pages (see also here 
> )
>  
> to get all accounts under the root MCC.
>
> How would I do this with the new Google Ads API? The Python examples 
>  do not (yet) show how 
> to do this. Or is there a better way to pull reports over all accounts, 
> which are not managed accounts?
>
> FYI: Credentials & token are working (we're using the same tokens as 
> before for AdWords [see here 
> ]) 
> and I can successfully pull the accessible customers 
> via customer_service.list_accessible_customers().
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog:
> https://googleadsdeveloper.blogspot.com/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>  
> You received this message because you are 

Date_time data type in Ads API

2019-04-03 Thread Alexander
According to 
https://developers.google.com/google-ads/api/docs/fields/account_budget_proposal
 
the data type of 
account_budget_proposal.approval_date_time is DATE, which is not really 
precise. Is there no DATE_TIME data type in Ads-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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/202f7f07-5193-4fe9-97b7-96501dc49624%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to convert Google-Ads API GoogleAdsRow to json?

2019-04-01 Thread Alexander Belozerov
Hello there,
Im querying google ads api and need to save results as json. What is the 
best way to convert GoogleAdsRow type into json?


The result of the google ads api call is GoogleAdsRow that looks like this:

campaign {
  resource_name: "customers/321/campaigns/123"
  id {
value: 123
  }
  name {
value: "Campaign Name A"
  }
}
metrics {
  clicks {
value: 711
  }
  impressions {
value: 2662
  }
}
segments {
  device: DESKTOP
  ad_network_type: SEARCH
  date {
value: "2019-03-01"
  }
}

Instead of campaign, it can be adgroup, keywords, etc.
What is the best way to convert this kind of data to json?

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/36dfac7b-4885-4aac-9833-97c17517f9c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to use GoogleAdsFieldService?

2019-03-19 Thread Alexander
How can I get all fields of some resource (for example "user_interest") 
using GoogleAdsFieldService?
I can get only something like following - which is of little use.

>
> resource_name: "googleAdsFields/user_interest"
> name {
>   value: "user_interest"
> }
> category: RESOURCE
> selectable {
> }
> filterable {
> }
> sortable {
> }
> data_type: MESSAGE
> type_url {
>   value: "com.google.ads.googleads.v1.resources.UserInterest"
> }
> is_repeated {
> }
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b861b72d-3ad9-4495-a4ae-75bc97c38e81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


adGroupAdService get request returns InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2019-01-17 Thread Alexander Kosenko
Hi,

When I make a request in the following way:

SelectorBuilder builder = new SelectorBuilder();
builder.fields(AdGroupAdField.Id)
.in(AdGroupAdField.AdGroupId, "38880158570")
.in(AdGroupAdField.AdType, new String[] 
{"EXPANDED_TEXT_AD", "EXPANDED_DYNAMIC_SEARCH_AD"})
.notEquals(AdGroupAdField.Status, AdGroupAdStatus._DISABLED)
.greaterThan(AdGroupAdField.Id, adsId)
.orderAscBy(AdGroupAdField.Id)
.offset(offset)
.limit(pageSize)
Selector selector = builder.build();
adGroupAdService.get(selector)

It always return error in 
response InternalApiError.UNEXPECTED_INTERNAL_API_ERROR. 
Before yesterday it worked as expected. What is wrong?

Kind Regards,
Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2379f76a-4409-474f-b0ed-7757286934f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keywords Performance Report device blank???

2019-01-16 Thread Alexander
New Device in reports: "Devices streaming video content to TV screens"

On Monday, January 14, 2019 at 1:18:58 PM UTC+1, SP wrote:
>
> im waiting for this fix as well, 
> thanks for add the question, and thanks the Adwords team to work on it
>
> El viernes, 11 de enero de 2019, 1:41:01 (UTC+1), emnet escribió:
>>
>>
>> ** Note: CONNECTED_TV will be available on January 8, 2019. See our 
>> blog 
>> 
>>  for 
>> more details.*
>> *TV device blank!!!*
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/48155c69-3a90-4930-9814-eee62bf28e50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords Transfer Service not sending usable search impression share data

2019-01-03 Thread Alexander
a workaround would be: CAST( REGEXP_REPLACE( SearchImpressionShare, 
'[%<>]', '' ) AS FLOAT64 )



On Thursday, January 3, 2019 at 10:35:37 AM UTC+1, Ryan Lister wrote:
>
> Hi Support,
>
> I am trying to build a reporting suite for AdWords by bringing the data 
> through to our BigQuery instance and linking it to an online dashboarding 
> tool.
> The adwords data transfer service sends us the reports outlined here :
> https://cloud.google.com/bigquery/docs/adwords-transformation
>
> The problem is that the SearchImpressionShare metric has a special value 
> for when it is less than 10%, this is a text value of "<10%".
> This makes it impossible to perform calculations on this measure, for 
> example finding the average search impression share over a given date range.
>
> From the attached image you can see that these aggregations are possible 
> in the web UI.
>
> Is there anyway to get the true search impression share values sent 
> through instead of "<10%" so that I am able to replicate what is being 
> shown in the UI?
>
> Thanks,
> Ryan
>
>
> *[image: www.natives.group] *
>
>   
>   
> 
> The views expressed are personal and may not necessarily reflect those of 
> Natives Online Ltd or any of the subsidiary businesses, unless explicitly 
> stated otherwise. This E-mail and any files transmitted with it are 
> confidential and may contain privileged information. It is intended solely 
> for the use of the individual or entity to whom they are addressed. If you 
> are not the addressee it may be unlawful for you to read, copy, distribute, 
> disclose or otherwise use the information in this e-mail. If you have 
> received this E-mail in error please notify the Administrator by telephone 
> on the numbers provided. Lees House, Dyke Road, Brighton, BN1 3FE
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e2c3509b-7d75-44e5-8be2-af6012539b72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ClickAssistedConversionValue and ImpressionAssistedConversionValue now contain "--"?!

2018-12-12 Thread Alexander
Same problem. We quick fixed it yesterday on our end to interpret "--" as 
zero. 

Is it sufficient to click the "Me too!" button in a forum thread? Or is it 
better to post a message?

On Wednesday, December 12, 2018 at 10:29:52 AM UTC+1, Zweitze wrote:
>
> I also want to add that this morning, over 50% of our jobs failed - all on 
> this error.
>
>
>
> On Wednesday, December 12, 2018 at 9:21:07 AM UTC+1, Zweitze wrote:
>>
>> Indeed, my concern is that those fields now contain '--'.
>> That change breaks our software.
>>
>>
>> On Tuesday, December 11, 2018 at 6:18:24 PM UTC+1, Teja Makani wrote:
>>>
>>> Hello,
>>>
>>> Could you confirm whether your concern is regarding the '--' values of 
>>> those fields? If your concern is different please elaborate.
>>>
>>> Regards,
>>> Sai Teja, AdWords API Team
>>>
>>> On Tuesday, December 11, 2018 at 5:39:36 AM UTC-5, Zweitze wrote:

 Hello,

 This morning about 10% of the reporting jobs failed. The failure was 
 always on CAMPAIGN_PERFORMANCE_REPORT. This is the report definition:
 
 
https://adwords.google.com/api/adwords/cm/v201802;>
CampaignId
Date
AdNetworkType2
ClickAssistedConversions
ClickAssistedConversionValue
ImpressionAssistedConversions
ImpressionAssistedConversionValue

CampaignStatus
IN
ENABLED
PAUSED
REMOVED


20180827
20181211


https://adwords.google.com/api/adwords/cm/v201802;> 
 CampaignAssistedConversion 27-08-2018...11-12-2018
https://adwords.google.com/api/adwords/cm/v201802
 ">CAMPAIGN_PERFORMANCE_REPORT
https://adwords.google.com/api/adwords/cm/v201802
 ">CUSTOM_DATE
https://adwords.google.com/api/adwords/cm/v201802
 ">GZIPPED_XML
 

 The three rows in the returned XML:
 >>> networkWithSearchPartners='Google search' clickAssistedConv='0' 
 clickAssistedConvValue='--' imprAssistedConv='0' 
 imprAssistedConvValue='--'/>
 >>> networkWithSearchPartners='Google search' clickAssistedConv='0' 
 clickAssistedConvValue='--' imprAssistedConv='0' 
 imprAssistedConvValue='--'/>
 >>> networkWithSearchPartners='Google search' clickAssistedConv='0' 
 clickAssistedConvValue='--' imprAssistedConv='0' 
 imprAssistedConvValue='--'/>

 Note the values on clickAssistedConvValue and imprAssistedConvValue.

 I would like to stress that this has never happened in the previous 
 months when we used v201802, nor it happened in previous versions of 
 AdWords API. This appears to be new behavior, breaking some of our 
 operations.


 Was this an error in the 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c4fe4e48-1421-4732-bb89-12af1429e499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Access reports of linked account with MCC account

2018-10-12 Thread targaryen . alexander
Hello dear community,

I opened this question already but can't find it somehow. So I hope this 
won't be a duplicate.

So I am stuck with a problem which I guess should be easy to solve but I am 
no expert and can't quite fix it. Just for reference: I work with Laravel 
5.7 and Google Ads Api v201806

So what I want to achieve is this:

1. User logs in via oauth2

$oAuth2Credential = new OAuth2([
  'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth',
  'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token',
  'redirectUri' => '-',
  'clientId' => '-',
  'clientSecret' => -',
  'scope' => 'https://www.googleapis.com/auth/adwords',
]);
if (!isset($_GET['code'])) {
  $oAuth2Credential->setState(sha1(openssl_random_pseudo_bytes(1024)));
  $_SESSION['oauth2state'] = $oAuth2Credential->getState();
  $config = [
'access_type' => 'offline',
'prompt' => 'consent',
  ];
  header('Location: ' . $oAuth2Credential->buildFullAuthorizationUri(
$config));
  exit();
} elseif (empty($_GET['state'])
|| ($_GET['state'] !== $_SESSION['oauth2state'])) {
  unset($_SESSION['oauth2state']);
  exit('Invalid state.');
} else {
  $oAuth2Credential->setCode($_GET['code']);
  $authToken = $oAuth2Credential->fetchAuthToken();
  $refreshToken = $authToken['refresh_token'];
}

2. Check if account is MCC. If it is not then proceed and get the reports 
(this works flawlessly with the same ajax call from beneath) and if it is 
then show the user a select field to select the account to get the reports 
from:

$session = $adWordsSessionBuilder->fromFile(config('app.adsapi_php_path'))
->withOAuth2Credential($oAuth2Credential)
->build();

$customerService = $adWordsServices->get(
  $session,
  CustomerService::class
);

$customerId = $customerService->getCustomers()[0]->getCustomerId();
$canManageClients = $customerService->getCustomers()[0]->getCanManageClients
();

$session = $adWordsSessionBuilder->fromFile(config('app.adsapi_php_path'))
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($customerId)
->build();
  $_SESSION['adsSession'] = $session;
if(!$canManageClients) return view('results.loading');
else {
  $managedCustomerService = $adWordsServices->get(
$session,
ManagedCustomerService::class
  );
  $selector = new Selector();
  $selector->setFields(['CustomerId', 'Name']);
  $selector->setOrdering([new OrderBy('CustomerId', SortOrder::ASCENDING
)]);
  $selector->setPaging(new Paging(0, 500));
  $customers = $managedCustomerService->get($selector)->getEntries();
  return view('login.selectcid', compact('customers')) ;
}

3. Pass the selected ID via POST to the controller (and I pass the GET 
query string from the view before with code and state set). Then get the 
reports for the selected customerId:

if(!empty($request->clientCustomerId)) {
  $clientCustomerId = $request->clientCustomerId;
  $session = 
$adWordsSessionBuilder->fromFile(config('app.adsapi_php_path'))
  ->withOAuth2Credential($oAuth2Credential)
  ->withClientCustomerId($clientCustomerId)
  ->build();
  $_SESSION['adsSession'] = $session;
};
$_SESSION['clientCustomerId'] = $clientCustomerId;
return view('results.loading');

In this view I make some ajax calls (which work for logging in with a non 
mcc account) kinda like this:
$session = $_SESSION['adsSession'];
$query = (new ReportQueryBuilder())
  ->select([
'Cost',
'Impressions',
'Clicks',
'Conversions',
'CostPerConversion',
'Ctr',
'AllConversionRate'
  ])
  ->from(ReportDefinitionReportType::CAMPAIGN_PERFORMANCE_REPORT)
  ->build();
$reportDownloader = new ReportDownloader($session);
$reportSettingsOverride = (new ReportSettingsBuilder())
->includeZeroImpressions(false)
->build();
$reportDownloadResult = $reportDownloader->downloadReportWithAwql(
sprintf('%s',$query),
DownloadFormat::XML,
$reportSettingsOverride
  );
$json = json_encode(
  simplexml_load_string($reportDownloadResult->getAsString())
);
$finalreports = json_decode($json, true)['table'];
return $finalreports;

But I get the following error message (only with my MCC flow):

Client error: `POST https://oauth2.googleapis.com/token` resulted in a `401 
Unauthorized` response:
{ 
  "error": "unauthorized_client", 
  "error_description": "Unauthorized" 
} 


I'd appreciate any help! If you need more information please let me know.

Thanks to everybody in advance.









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

You received this message because you are subscribed to the 

Getting access to Reports of accounts linked to MCC

2018-10-12 Thread targaryen . alexander
Hello dear community,

I am stuck with a problem which should be easy to solve but I am no expert 
and can't get it quite right. Just for clarification: I use Laravel 5.7 and 
Google Ads Api v201806

So what I am trying to achieve:

1. User logs in via oauth2.

$oAuth2Credential = new OAuth2([
  'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth',
  'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token',
  'redirectUri' => '-',
  'clientId' => '-',
  'clientSecret' => '-',
  'scope' => 'https://www.googleapis.com/auth/adwords',
]);
if (!isset($_GET['code'])) {
  $oAuth2Credential->setState(sha1(openssl_random_pseudo_bytes(1024)));
  $_SESSION['oauth2state'] = $oAuth2Credential->getState();
  $config = [
'access_type' => 'offline',
'prompt' => 'consent',
  ];
  header('Location: ' . $oAuth2Credential->buildFullAuthorizationUri(
$config));
  exit();
} elseif (empty($_GET['state'])
|| ($_GET['state'] !== $_SESSION['oauth2state'])) {
  unset($_SESSION['oauth2state']);
  exit('Invalid state.');
} else {
  $oAuth2Credential->setCode($_GET['code']);
  $authToken = $oAuth2Credential->fetchAuthToken();
  $refreshToken = $authToken['refresh_token'];
}

2. Check whether account is MCC or not
$session = $adWordsSessionBuilder->fromFile(config('app.adsapi_php_path'))
->withOAuth2Credential($oAuth2Credential)
->build();
$customerService = $adWordsServices->get(
  $session,
  CustomerService::class
);
$customerId = $customerService->getCustomers()[0]->getCustomerId();

$canManageClients = $customerService->getCustomers()[0]->getCanManageClients
();

$session = $adWordsSessionBuilder->fromFile(config('app.adsapi_php_path'))
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($customerId)
->build();

3. If account is not mcc, just proceed and get the reports (this works), if 
account is MCC get a select field with all managable accounts to choose the 
account to get the reports from
if(!$canManageClients) return view('results.loading');

else {
  $managedCustomerService = $adWordsServices->get(
$session,
ManagedCustomerService::class
  );
  $selector = new Selector();
  $selector->setFields(['CustomerId', 'Name']);
  $selector->setOrdering([new OrderBy('CustomerId', SortOrder::ASCENDING
)]);
  $selector->setPaging(new Paging(0, 500));
  $customers = $managedCustomerService->get($selector)->getEntries();
  $_SESSION['adsSession'] = $session;
  return view('login.selectcid', compact('customers')) ;
}
4. Let the MCC select which account to get the reports from and send it via 
post to the controller
Here I also pass the GET query string to the next view, so the code and 
state is still set
if(!empty($request->clientCustomerId)) {
  $clientCustomerId = $request->clientCustomerId;
  $session = $adWordsSessionBuilder->fromFile(config(
'app.adsapi_php_path'))
  ->withOAuth2Credential($oAuth2Credential)
  ->withClientCustomerId($clientCustomerId)
  ->build();
$_SESSION['adsSession'] = $session;
};
$_SESSION['clientCustomerId'] = $clientCustomerId;
  return view('results.loading');



5. Get the report for the customerId from the request in the next view
I get all my required data via an ajax call to a function somewhat like 
this:
$session = $_SESSION['adsSession'];
$query = (new ReportQueryBuilder())
  ->select([
'Cost',
'Impressions',
'Clicks',
'Conversions',
'CostPerConversion',
'Ctr',
'AllConversionRate'
  ])
  ->from(ReportDefinitionReportType::CAMPAIGN_PERFORMANCE_REPORT)
  ->build();
$reportDownloader = new ReportDownloader($session);
$reportSettingsOverride = (new ReportSettingsBuilder())
->includeZeroImpressions(false)
->build();
$reportDownloadResult = $reportDownloader->downloadReportWithAwql(
sprintf('%s',$query),
DownloadFormat::XML,
$reportSettingsOverride
  );
$json = json_encode(
  simplexml_load_string($reportDownloadResult->getAsString())
);
$finalreports = json_decode($json, true)['table'];
$_SESSION['campaignsPerformaceData'] = $finalreports;
return $finalreports;

But in return I get the following error message:
"Client error: `POST https://oauth2.googleapis.com/token` resulted in a 
`401 Unauthorized` response: { "error": "unauthorized_client", "
error_description": "Unauthorized" } "

I have to mention, that all this works with a non MCC account. I think 
because I don't mess arround with the customerIds. 

I'd appreciate any help. If you need more information please let me know.

Thanks to all in advance.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:

Re: CrmBasedUserList - clear a list (full cleaning)

2018-09-02 Thread alexander . epihov
Thank you so much,
but what about the code? is it correct?

понедельник, 3 сентября 2018 г., 6:20:27 UTC+3 пользователь Dannison Yao 
(AdWords API Team) написал:
>
> Hi,
>
> For AdWordsUserListService, AdWords API only allows you to view the list 
> but not its actual members, so it is not possible to see in the response 
> the detailed information of the members that are being deleted. However, if 
> you wish to know if this is possible in the AdWords UI, you may open your 
> concern in the Advertiser's Community Forum 
>  as 
> the product experts are better answering UI/product related concerns.
>
> If you wish to view the list of audience lists, you may view your lists by 
> running the AdwordsUserListService.get() 
> 
> .
>
> Regards,
> Dannison
> AdWords API Team
>
> On Friday, August 31, 2018 at 8:29:26 PM UTC+8, 
> alexande...@vseinstrumenti.ru  wrote:
>>
>> Many thanks for the prompt response!
>>
>> I have already tried to solve this issue on my own:
>>
>> $adWordsServices = new AdWordsServices();
>>
>> $userListService = $adWordsServices->get(self::$session, 
>> AdwordsUserListService::class);
>>
>> $mutateMembersOperations = [];
>> $mutateMembersOperation = new MutateMembersOperation();
>> $operand = new MutateMembersOperand($UserListId, true);
>>
>> $mutateMembersOperation->setOperand($operand);
>>
>> $mutateMembersOperations[] = $mutateMembersOperation;
>>
>> $result = $userListService->mutateMembers($mutateMembersOperations);
>>
>> var_dump($result);
>>
>>
>> errors like no, but I'm not sure that the list is cleared, because 
>> detailed information can not be obtained.
>>
>> Help please with the code.
>>
>>
>> пятница, 31 августа 2018 г., 11:20:48 UTC+3 пользователь Dannison Yao 
>> (AdWords API Team) написал:
>>>
>>> Hi,
>>>
>>> If you wish to delete all members of a userList, you could use the 
>>> MutateMembersOperand 
>>> 
>>>  and 
>>> set the removeAll 
>>> 
>>>  field 
>>> to *TRUE *while using the REMOVE operator. However, if you wish to 
>>> remove individual members in the list, you could use the 
>>> AdwordsUserListService.mutateMembers() 
>>> 
>>>  to 
>>> REMOVE a member using MutateMembersOperand.membersList 
>>> 
>>>  in 
>>> your userlist. 
>>>
>>> Regards,
>>> Dannison
>>> AdWords API Team
>>>
>>> On Friday, August 31, 2018 at 2:02:30 PM UTC+8, 
>>> alexande...@vseinstrumenti.ru wrote:

 Hi,help me please...

 I can not find an api method that will allow me to clear the list at a 
 time.
 Point removal (MutateMembersOperation -> operator -> REMOVE) is not of 
 interest, because I may not know the contents of the list.


 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e0df3f19-c9a1-483e-b727-60b14f056b45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CrmBasedUserList - clear a list (full cleaning)

2018-08-31 Thread alexander . epihov
Many thanks for the prompt response!

I have already tried to solve this issue on my own:

$adWordsServices = new AdWordsServices();

$userListService = $adWordsServices->get(self::$session, 
AdwordsUserListService::class);

$mutateMembersOperations = [];
$mutateMembersOperation = new MutateMembersOperation();
$operand = new MutateMembersOperand($UserListId, true);

$mutateMembersOperation->setOperand($operand);

$mutateMembersOperations[] = $mutateMembersOperation;

$result = $userListService->mutateMembers($mutateMembersOperations);

var_dump($result);


errors like no, but I'm not sure that the list is cleared, because detailed 
information can not be obtained.

Help please with the code.


пятница, 31 августа 2018 г., 11:20:48 UTC+3 пользователь Dannison Yao 
(AdWords API Team) написал:
>
> Hi,
>
> If you wish to delete all members of a userList, you could use the 
> MutateMembersOperand 
> 
>  and 
> set the removeAll 
> 
>  field 
> to *TRUE *while using the REMOVE operator. However, if you wish to remove 
> individual members in the list, you could use the 
> AdwordsUserListService.mutateMembers() 
> 
>  to 
> REMOVE a member using MutateMembersOperand.membersList 
> 
>  in 
> your userlist. 
>
> Regards,
> Dannison
> AdWords API Team
>
> On Friday, August 31, 2018 at 2:02:30 PM UTC+8, 
> alexande...@vseinstrumenti.ru  wrote:
>>
>> Hi,help me please...
>>
>> I can not find an api method that will allow me to clear the list at a 
>> time.
>> Point removal (MutateMembersOperation -> operator -> REMOVE) is not of 
>> interest, because I may not know the contents of the list.
>>
>>
>> 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/127136bc-6ee4-48a4-8674-138b1f421d52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CrmBasedUserList - clear a list (full cleaning)

2018-08-31 Thread alexander . epihov
Hi,help me please...

I can not find an api method that will allow me to clear the list at a time.
Point removal (MutateMembersOperation -> operator -> REMOVE) is not of 
interest, because I may not know the contents of the list.


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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/557e8f41-5e76-4c91-a233-dfbeed31be12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CrmBasedUserList remove all members - clear the list

2018-08-30 Thread alexander . epihov
Hello!

I can not find a method for cleaning the list.
Point removal (MutateMembers operator REMOVE) is not of interest - I need a 
full sweep, all at once.
Is there such an api method?

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eb7e1e5e-2e25-4b12-adf5-099f0d6a9864%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do tools like ubersuggest, semrush, kwfinder, ... get LEGAL access to Adwords API?

2018-07-20 Thread Alexander
Thank you Peter,

I want to apologize because after posting I noticed the "Read Me" sticky 
post, which said not use this forum for technical questions only.

I'm grateful that you overlooked my erring and chose to be helpful.

I would like to take you up on the offer to talk to the AdWords Compliance 
team. I assume you have my contact info. 

Thankful,
Alexander

On Friday, July 20, 2018 at 8:17:54 AM UTC+2, Peter Oliquino (AdWords API 
Team) wrote:
>
> Hi Alexander,
>
> Any customer should be able to get access for the AdWords API by first 
> signing 
> up for a MCC account 
> <https://developers.google.com/adwords/api/docs/guides/signup> and request 
> for basic access <https://services.google.com/fb/forms/newtoken/> for 
> their developerTokens. Once the sign up and the application has been sent, 
> users can then generate their OAuth2 credentials 
> <https://developers.google.com/adwords/api/docs/guides/authentication>
>  and download the client library 
> <https://developers.google.com/adwords/api/docs/clientlibraries> they are 
> most comfortable with. That's about it for gaining access, however, if you 
> would have any additional questions regarding legalities, allow me to 
> notify the AdWords Compliance team so they can assist you further.
>
> As for keyword suggestions and performance estimates of Adwords entities, 
> you can use the TargetingIdeaService 
> <https://developers.google.com/adwords/api/docs/reference/v201806/TargetingIdeaService>
>  and 
> the TrafficEstimatorService 
> <https://developers.google.com/adwords/api/docs/reference/v201806/TrafficEstimatorService>,
>  
> respectively, for this. You can find the guide for keyword ideas here 
> <https://developers.google.com/adwords/api/docs/guides/targeting-idea-service>
>  and 
> for the performance estimates, you can then refer to this one 
> <https://developers.google.com/adwords/api/docs/guides/traffic-estimator-service>
> .
>
> Thanks and regards,
> Peter
> 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d7146eb4-0e78-468b-893d-e5c89e5222a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do tools like ubersuggest, semrush, kwfinder, ... get LEGAL access to Adwords API?

2018-07-19 Thread Alexander
For example: https://neilpatel.com/ubersuggest/

Returns exact Google Adwords API data (keyword planner tool).

The Adwords API states that you can only use the API for PPC (Adwords) 
purposes.

Isn't using it for SEO tools considered against the terms of service?

Is there a legal way, and what is that? Because I'd like to know if I can 
get paid access for my own tools.

- related keyword suggestions
- search volume (kwfinder.com shows month-month data)
- CPC

I could build my own keyword suggestion method, but search volume and CPC I 
have no original sources for.
Since so many tools are having the same data and it all comes back to this 
source ... how do they get it legally?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9da29ba9-9d6d-4a6d-b1e4-077f866db0cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Obtaining AdGroupId

2018-05-12 Thread ironside . alexander
So if I understand correctly I'll need to create a new campaign, with ad 
group in it and use its adGroup ID to get the keywords?
If so, I'm trying to create a new campaign, but I seem to be unable to pick 
an account (screenshot attached). I'm using Chrome v.64, in incognito mode.
All I want to do is get the keyword ideas.

W dniu piątek, 11 maja 2018 21:20:56 UTC+2 użytkownik Bharani Cherukuri 
(AdWords API Team) napisał:
>
> Hello, 
>
> You can retrieve the Targeting ideas by providing the Ad Group ID with the 
> SeedAdGroupIdSearchParameter 
> .
>  
> If you already have an existing Ad group in your account, you could use the 
> AdGroupService.get() 
> 
>  to 
> get the AdGroup Ids associated with the campaign. If not, you could create 
> a new Ad Group using the AdGroupService.mutate() 
> 
>  request. 
> Please take a look at the code samples in Java on how to Get AdGroups 
> 
>  and Add AdGroups 
> 
>  as 
> a reference. Code samples in other languages can be found here 
> . You can 
> use the desired ad group Id to pull the Targeting ideas information. 
>
> Let me know if you have any other questions. 
>
> Regards,
> Bharani, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b2c82f8c-fa6f-4cec-bf1e-417641a6cfd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-11 Thread ironside . alexander
I'll open another thread with further questions. This question was solved 
with creating the oauth credentials in incognito window.

W dniu piątek, 11 maja 2018 11:33:35 UTC+2 użytkownik 
ironside@gmail.com napisał:
>
> OK I think I got through it. I used the client id for the test account. 
> Now I'm getting this error:
> {Error returned when the requested Paging is missing 
> from the TargetingIdeaSelector when 
> required.. (Error: TargetingIdeaError.NO_PAGING_IN_SELECTOR, FieldPath: 
> selector, Trigger: )
> Error returned when the 
> TargetingIdeaSelector doesn't have enough  href='SearchParameter'>SearchParameters to execute request.. (Error: 
> TargetingIdeaError.INSUFFICIENT_SEARCH_PARAMETERS, FieldPath: selector.
> searchParameters, Trigger: )
> Missing required field.. (Error: RequiredError.REQUIRED, FieldPath: 
> selector.paging, Trigger: )}
>
> And this is my code:
> // GET: api/
> [HttpGet]
> public IEnumerable Get()
> {
> var user = new AdWordsUser();
> using (TargetingIdeaService targetingIdeaService = 
> (TargetingIdeaService)user.GetService(AdWordsService.v201802.TargetingIdeaService))
> {
> // Create selector.
> TargetingIdeaSelector selector = new TargetingIdeaSelector();
> selector.requestType = RequestType.IDEAS;
> selector.ideaType = IdeaType.KEYWORD;
> selector.requestedAttributeTypes = new AttributeType[] {
> AttributeType.KEYWORD_TEXT,
> AttributeType.SEARCH_VOLUME,
> AttributeType.AVERAGE_CPC,
> AttributeType.COMPETITION,
> AttributeType.CATEGORY_PRODUCTS_AND_SERVICES
> };
>
> // Set selector paging (required for targeting idea service).
> var paging = Paging.Default;
> // Create related to query search parameter.
> var relatedToQuerySearchParameter = new 
> RelatedToQuerySearchParameter { queries = new String[] { "bakery", 
> "pastries", "birthday cake" } };
>
> var searchParameters = new List { 
> relatedToQuerySearchParameter };
>
> var page = new TargetingIdeaPage();
> page = targetingIdeaService.get(selector);
> return new string[] { "value1", "value2" };
> }
> }
>
> The paging thing is there, so I have no idea what I'm missing
>
> W dniu czwartek, 10 maja 2018 22:07:01 UTC+2 użytkownik Teja Makani 
> napisał:
>>
>> Hello Ironside,
>>
>> The accounts named as test are AdWords test manager accounts. You could 
>> switch back to old UI view to see that there is a red banner for these 
>> accounts (clicking on the return to previous AdWords ICS under the Tools, 
>> Billing and settings icon). To create the oAuth credentials required to 
>> make the API call, you can follow the steps listed in this guide 
>> .
>>  
>> You have to make sure that the call is being authorized by the user who has 
>> access to the accounts. Please let me know if you face any issues. 
>>
>> Regards,
>> Sai Teja, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/332f1ea4-09db-4cd8-b3de-002d24f3d670%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Obtaining AdGroupId

2018-05-11 Thread ironside . alexander
Hi. I'm looking for a way to get my AdGroupId. Here's part of my code:

var seedAdGroupIdSearchParameter = new SeedAdGroupIdSearchParameter();
seedAdGroupIdSearchParameter.adGroupId = ;
searchParameters.Add(seedAdGroupIdSearchParameter);
searchParameters.Add(relatedToQuerySearchParameter);

Where do I get the adGroupId from?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d337c272-512d-4b59-9139-733ba5a6771a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-11 Thread ironside . alexander
OK I think I got through it. I used the client id for the test account. Now 
I'm getting this error:
{Error returned when the requested Paging is missing 
from the TargetingIdeaSelector when 
required.. (Error: TargetingIdeaError.NO_PAGING_IN_SELECTOR, FieldPath: 
selector, Trigger: )
Error returned when the 
TargetingIdeaSelector doesn't have enough SearchParameters to execute request.. (Error: 
TargetingIdeaError.INSUFFICIENT_SEARCH_PARAMETERS, FieldPath: selector.
searchParameters, Trigger: )
Missing required field.. (Error: RequiredError.REQUIRED, FieldPath: selector
.paging, Trigger: )}

And this is my code:
// GET: api/
[HttpGet]
public IEnumerable Get()
{
var user = new AdWordsUser();
using (TargetingIdeaService targetingIdeaService = 
(TargetingIdeaService)user.GetService(AdWordsService.v201802.TargetingIdeaService))
{
// Create selector.
TargetingIdeaSelector selector = new TargetingIdeaSelector();
selector.requestType = RequestType.IDEAS;
selector.ideaType = IdeaType.KEYWORD;
selector.requestedAttributeTypes = new AttributeType[] {
AttributeType.KEYWORD_TEXT,
AttributeType.SEARCH_VOLUME,
AttributeType.AVERAGE_CPC,
AttributeType.COMPETITION,
AttributeType.CATEGORY_PRODUCTS_AND_SERVICES
};

// Set selector paging (required for targeting idea service).
var paging = Paging.Default;
// Create related to query search parameter.
var relatedToQuerySearchParameter = new 
RelatedToQuerySearchParameter { queries = new String[] { "bakery", 
"pastries", "birthday cake" } };

var searchParameters = new List { 
relatedToQuerySearchParameter };

var page = new TargetingIdeaPage();
page = targetingIdeaService.get(selector);
return new string[] { "value1", "value2" };
}
}

The paging thing is there, so I have no idea what I'm missing

W dniu czwartek, 10 maja 2018 22:07:01 UTC+2 użytkownik Teja Makani napisał:
>
> Hello Ironside,
>
> The accounts named as test are AdWords test manager accounts. You could 
> switch back to old UI view to see that there is a red banner for these 
> accounts (clicking on the return to previous AdWords ICS under the Tools, 
> Billing and settings icon). To create the oAuth credentials required to 
> make the API call, you can follow the steps listed in this guide 
> .
>  
> You have to make sure that the call is being authorized by the user who has 
> access to the accounts. Please let me know if you face any issues. 
>
> Regards,
> Sai Teja, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5540b120-dd81-4142-9ec1-ae8b1dcef768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-11 Thread ironside . alexander
Ok so I have the test account and the manager account. The manager is the 
default non-test account. When I try to create the oauth credentials, they 
are created with the manager (non-test) account. I need to use the test 
account to create the oauth credentials. How can I do that?

W dniu czwartek, 10 maja 2018 22:07:01 UTC+2 użytkownik Teja Makani napisał:
>
> Hello Ironside,
>
> The accounts named as test are AdWords test manager accounts. You could 
> switch back to old UI view to see that there is a red banner for these 
> accounts (clicking on the return to previous AdWords ICS under the Tools, 
> Billing and settings icon). To create the oAuth credentials required to 
> make the API call, you can follow the steps listed in this guide 
> .
>  
> You have to make sure that the call is being authorized by the user who has 
> access to the accounts. Please let me know if you face any issues. 
>
> Regards,
> Sai Teja, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1d766e27-06b7-4436-8921-1c873079f536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-10 Thread ironside . alexander
Now I'm just really confused. I created new "test" accounts using this 
link: https://adwords.google.com/um/Welcome/Home?a=1=mt=0#ta, 
but how am I supposed to log into these accounts to create the OAuth test 
credentials? This is what it looks like:

The "test" is the name of the account set by me. They are not test 
accounts, there is supposed to be a red label somewhere according to 
this: 
https://developers.google.com/adwords/api/docs/guides/accounts-overview#test_accounts
 
There is an image below. I cannot see anything like this anywhere. What am 
I missing?

W dniu środa, 9 maja 2018 17:10:07 UTC+2 użytkownik Dhanya Sundararaju 
(AdWords API Team) napisał:
>
> Hi,
>
> You will need to create a Test manager account and then create test client 
> accounts. All client accounts created under the test manager account will 
> be automatically marked as test accounts. Please refer this section of 
> guide 
> 
>  for 
> the steps and let me know if you have any further questions.
>
> Regards,
> Dhanya, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b8908947-abaa-4202-a99d-b9d012551910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-09 Thread ironside . alexander
Ok I realized this is the actual error message: Developer token is not 
approved for production access, and the customer is attempting to access a 
production account.
And it makes sense. But how do I make my customer a test user?

W dniu poniedziałek, 30 kwietnia 2018 17:47:29 UTC+2 użytkownik Dhanya 
Sundararaju (AdWords API Team) napisał:
>
> Hi Grégory,
>
> Could you please post on the .NET github 
>  as it is a 
> library specific issue? As a workaround, could you please follow the steps 
> as elaborated in this section of the guide 
> 
>  to 
> get tokens using the curl command and then try to make the API call after 
> updating in your App.config file? Please let me know if you have further 
> questions.
>
> Regards,
> Dhanya, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/68a62401-9374-4e19-9363-13d8debe0fe0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-05-09 Thread ironside . alexander
Hi Dhanya.
Thank you so much.
It almost works and I feel like I'm almost there. Now I'm getting a 
"developer token is not approved" error, which is interesting, because my 
account is a test account, and I copied the developer token.
What is the possible issue here? I already reset the token using incognito 
tab.

W dniu poniedziałek, 30 kwietnia 2018 17:47:29 UTC+2 użytkownik Dhanya 
Sundararaju (AdWords API Team) napisał:
>
> Hi Grégory,
>
> Could you please post on the .NET github 
>  as it is a 
> library specific issue? As a workaround, could you please follow the steps 
> as elaborated in this section of the guide 
> 
>  to 
> get tokens using the curl command and then try to make the API call after 
> updating in your App.config file? Please let me know if you have further 
> questions.
>
> Regards,
> Dhanya, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3256dae9-0792-482c-86bf-fc616e98c11d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-04-26 Thread ironside . alexander
When I try to use the oauthgenerator.exe it crashes with no error report. I 
input my credentials and scopes, log in with my account, approve the 
access, and then the program stops working. Is generating the refresh token 
using the playground any different?

W dniu poniedziałek, 23 kwietnia 2018 12:47:50 UTC-4 użytkownik Dhanya 
Sundararaju (AdWords API Team) napisał:
>
> Hi,
>
> Do you get this error when you run the curl command that was shared or 
> when you run the client library examples 
> ? Could you try 
> opening a new incognito window, then generate the client id and secret 
> using a valid AdWords user login. Also, please make sure you are using the 
> correct scope which is: "https://www.googleapis.com/auth/adwords;. After 
> that, please generate the refresh token using the OAuthTokenGenerator.exe 
> .
>  
> Then, please use those credentials to run GetCampaigns.cs 
> 
>  or GetCampaigns.vb 
> 
>  and 
> let me know if you still get errors.
>
> Regards,
> Dhanya, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bfdd54e3-d982-45ea-8a88-108b53a65386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-04-26 Thread ironside . alexander
The error appeared during the curl command.
So I should generate new OAuth keys, use these, and create the refresh 
token using the TokenGenerator.exe right?
So far I've been generating refresh tokens using the Google Playground, 
with the scope provided
https://developers.google.com/oauthplayground/
If I'm working on localhost should I add the redirect URLs? Or would this 
work only on a live server?

W dniu poniedziałek, 23 kwietnia 2018 12:47:50 UTC-4 użytkownik Dhanya 
Sundararaju (AdWords API Team) napisał:
>
> Hi,
>
> Do you get this error when you run the curl command that was shared or 
> when you run the client library examples 
> ? Could you try 
> opening a new incognito window, then generate the client id and secret 
> using a valid AdWords user login. Also, please make sure you are using the 
> correct scope which is: "https://www.googleapis.com/auth/adwords;. After 
> that, please generate the refresh token using the OAuthTokenGenerator.exe 
> .
>  
> Then, please use those credentials to run GetCampaigns.cs 
> 
>  or GetCampaigns.vb 
> 
>  and 
> let me know if you still get errors.
>
> Regards,
> Dhanya, 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b7d705b5-1aa0-42e0-817c-50c2552c2105%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWordsUser doesn't have authorization token

2018-04-21 Thread ironside . alexander
After regenerating the keys, now I'm getting a 

{
 "error": "unauthorized_client",
 "error_description": "Unauthorized"
}


W dniu piątek, 20 kwietnia 2018 14:52:35 UTC-4 użytkownik Dhanya 
Sundararaju (AdWords API Team) napisał:
>
> Hi,
>
> The "invalid_grant" error usually indicates that the access or refresh 
> token being passed in your request is incorrect or invalid. 
>
> To verify that your credentials are correct, you can try the CURL request 
> provided below and see if you are able to generate the access tokens. If 
> the credentials are correct, you should get an access token for the below 
> request.
>
> curl https://www.googleapis.com/oauth2/v4/token \
> -d refresh_token=your-refresh_token \
> -d client_id=your-client-id \
> -d client_secret=your-client-secret \
> -d grant_type=refresh_token
>
> If your credentials are incorrect and still facing issue then you can 
> generate a new refresh token with the help of this guide 
> 
>  and 
> retry your request. Please let me know if the issue persists.
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aaa9db7b-7a50-4e6a-bc20-3ad8a8abae9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWordsUser doesn't have authorization token

2018-04-20 Thread ironside . alexander
Hi. I'm trying to use the TargetingIdeaService with ASP.NET. This is my 
code so far:

   
 [HttpGet]
public IEnumerable Get()
{
var user = new AdWordsUser();
using (TargetingIdeaService targetingIdeaService = (
TargetingIdeaService)user.GetService(AdWordsService.v201802.
TargetingIdeaService))
{
// Create selector.
TargetingIdeaSelector selector = new TargetingIdeaSelector
();
selector.requestType = RequestType.IDEAS;
selector.ideaType = IdeaType.KEYWORD;
selector.requestedAttributeTypes = new AttributeType[] {
AttributeType.KEYWORD_TEXT,
AttributeType.SEARCH_VOLUME,
AttributeType.AVERAGE_CPC,
AttributeType.COMPETITION,
AttributeType.CATEGORY_PRODUCTS_AND_SERVICES
};


// Set selector paging (required for targeting idea 
service).
var paging = Paging.Default;
// Create related to query search parameter.
var relatedToQuerySearchParameter = new 
RelatedToQuerySearchParameter { queries = new String[] { "bakery", 
"pastries", "birthday cake" } };


var searchParameters = new List { 
relatedToQuerySearchParameter };


var page = new TargetingIdeaPage();
page = targetingIdeaService.get(selector);
return new string[] { "value1", "value2" };
}
}

All looks good until when executing the code throws an invalid_grand error.
During debugging it turned out that the property "authorization_token" of 
the user object is an empty string. All other credentials come from 
app.config and are in the object.
I believe I'm missing a step, but I have no idea what the step is.
I'm building a REST API app, so console solutions won't work.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5d1175bc-dc3c-44c5-989d-858d66031374%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Created AdWordsUser doesn't have authorization token

2018-04-20 Thread ironside . alexander
Hi.
I'm trying to get TargetingIdeaService up and running using ASP.NET.
I'm building my app as a REST API, so console solutions won't work.
This is my code so far:

[HttpGet]
public IEnumerable Get()
{
var user = new AdWordsUser();
using (TargetingIdeaService targetingIdeaService = 
(TargetingIdeaService)user.GetService(AdWordsService.v201802.TargetingIdeaService))
{
// Create selector.
TargetingIdeaSelector selector = new 
TargetingIdeaSelector();
selector.requestType = RequestType.IDEAS;
selector.ideaType = IdeaType.KEYWORD;
selector.requestedAttributeTypes = new AttributeType[] {
AttributeType.KEYWORD_TEXT,
AttributeType.SEARCH_VOLUME,
AttributeType.AVERAGE_CPC,
AttributeType.COMPETITION,
AttributeType.CATEGORY_PRODUCTS_AND_SERVICES
};

// Set selector paging (required for targeting idea 
service).
var paging = Paging.Default;
// Create related to query search parameter.
var relatedToQuerySearchParameter = new 
RelatedToQuerySearchParameter { queries = new String[] { "bakery", 
"pastries", "birthday cake" } };

var searchParameters = new List { 
relatedToQuerySearchParameter };

var page = new TargetingIdeaPage();
page = targetingIdeaService.get(selector);
return new string[] { "value1", "value2" };
}
}

So it all looks good, but when debugging I realized that the "user" object 
doesn't have the authorization token (the property is empty). All 
credentials are correctly stored in app.config. The object has developer 
token and so on, but doesn't generate authorization token.
I know I'm missing something, but I have no idea what.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/63e413d2-1b2a-412a-b882-537ec39a2976%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problem Connecting to the api

2018-03-21 Thread Alexander Meis
HI,
i run the googleads-php-lib, i set up the api credentiials like in the 
tutorial but on executing it got this error

2018/03/21 17:18:35 [error] 9367#0: *59204 FastCGI sent in stderr: "PHP 
message: PHP Fatal error:  Uncaught GuzzleHttp\Exception\ClientException: 
Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in 
a `400 Bad Request` response:
{
 "error": "invalid_grant",
 "error_description": "Bad Request"
}

can someone tell me how to fix this issue?

Thanks

Best regards,
Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a7830df2-a23c-4a56-a656-9c6991d0c536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Filter out remarketing campaigns

2018-01-31 Thread alexander . stafstrom
I solved it by getting the userlists of one of the following ListTypes: 
UserListType::RULE_BASED, UserListType::REMARKETING, 
UserListType::EXTERNAL_REMARKETING

And then using the audience performance report with the predicate that 
Criteria should be in the list of the above userlist-ids with the following 
prefix "boomuserlist::".

Not a super-pretty solution and not waterproof but I hope that it will be 
good enough for our use case.

I had already tried this solution earlier but thought it was to ugly and 
inaccurate to use but feels like I'm out of options.

/Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0af95da4-32f5-4a7f-a856-5a0fe2503660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Filter out remarketing campaigns

2018-01-30 Thread alexander . stafstrom
Hi, I want to get all campaigns and group them into the following groups: 
"Search", "Shopping", "Video", "Remarketing", "Dynamic Remarketing", 
"Display", "Gmail Ads".

I'm almost done but having trouble to filter out "Remarketing" campaigns 
from regular "Display" campaigns. According to my colleague a 
"Remarketing"-campaign is a campaign that has only "Website visitors" 
audiences.

To filter out Search, Shopping and Video I'm looking at the "Advertising 
Channel Type" in the CampaignPerformanceReport.

To filter out the Gmail Ads I'm using the Placement Performance Report and 
checking that all Placements lead to "mail.google.com".

To filter out Dynamic Remarketing I'm using the Campaign Service and 
checking if the campaign has a ShoppingSetting with a "Merchant Id", not 
sure if it's enough.

And to filter out Remarketing campaigns from regular Display campaigns I've 
tried using the Audience Performance Report but can't seem to find out if 
the Audience-type is "Website Visitors" or not.
I've also tried the "Adwords User List Service" but can't find out which 
lists are "Website visitors" there either.
I've also looked at the "Campaign Criterion Service" but same problem there.

So I would need help with this. Is there something other I can look at to 
find out if a campaign is a Remarketing Campaign or do you know how I could 
find out which "Website Visitors"-audiences are connected to which 
campaigns?

/Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9c3cad70-0a1c-44b8-852c-02bdc125229c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google API Price extension - corrupted data (CampaignId, microAmount, feedItemId, feedMappingId)

2017-12-07 Thread Alexander Popov
We could fix it. The problem was that v201710 worked for us only on php5.6 
running on admin server via cron was failed as we had php5.4 on admin. 
Updating admin server to 5.6 fixed the issue. thanks

On Thursday, November 30, 2017 at 3:57:24 PM UTC-6, Alexander Popov wrote:
>
> Hi.
> We Use PHP and I was following examples: 
> https://developers.google.com/adwords/api/docs/guides/extension-settings#update_ad_extensions
>  
> and everything works fine if i run code in browser like 
> http://mysite.com/myfile.php so code is inside "myfile.php" file
>
> But if I run using cron, I get:
> exception 'Google\AdsApi\AdWords\v201710\cm\ApiException' with message 
> '[EntityNotFound.INVALID_ID @ operations[0].operand.campaignId; 
> trigger:'CampaignId: 94408149']' in 
> /PATH/TO/LIBRARY/lib/Google/src/Google/AdsApi/Common/Util/Reflection.php:39
>
> SOAP:
> AW_SOAP.WARNING: clientCustomerId=MY-ID operations=3 
> service=CampaignExtensionSettingService method=mutate responseTime=160 
> requestId=00055f3907c35e200a3f3b12820373fb server=adwords.google.com 
> isFault=1 faultMessage=[EntityNotFound.INVALID_ID @ 
> operations[0].operand.campaignId; trigger:'CampaignId: 94408149'] 
>
> part of code we use:
> $campaignId = "944081497";
> $campaignExtensionSettingService = $adWordsServices->get($session, 
> CampaignExtensionSettingService::class);
>
> $selector = new Selector();
> $selector->setFields(['CampaignId', 'ExtensionType', 'Extensions']);
> $selector->setPredicates([
> new Predicate('CampaignId', PredicateOperator::EQUALS,
> [$campaignId]),
> new Predicate('ExtensionType', PredicateOperator::EQUALS,
> [FeedType::PRICE])
> ]);
>
> $page = $campaignExtensionSettingService->get($selector);
>
> $campaignExtensionSetting = $page->getEntries()[0];
> $campaignExtensionSetting->setExtensionType(FeedType::PRICE);
>
>
> If I debug $campaignExtensionSetting->getCampaignId(); - I get corrupted 
> value ”@ I (get 944081497 if run in http://mysite.com/myfile.php)
>
> Again if I run http://mysite.com/myfile.php I get 944081497 which is 
> right. So in error above you see "94408149" which is missing 7 in the end 
> and that's why doesn't work. 
> I've tried intval() to floatval() as suggested here 
> https://groups.google.com/forum/#!topic/adwords-api/NEjJg_7GXQw but it 
> doesn't help..
> What can be a reason that Google returns corrupted ID?
>
> I noticed that other data is corrupted:
>
>
> Google\AdsApi\AdWords\v201710\cm\CampaignExtensionSetting::__set_state(array(
>'campaignId' => '”@ I',
>'extensionType' => 'PRICE',
>
>
> Google\AdsApi\AdWords\v201710\cm\Money::__set_state(array(
>  'microAmount' => ' 4p' . "\0" . '',
>
> 'feedId' => '9 …U',
>  'feedItemId' => ' V…xf',
>  'policyData' => 
> array (
>   0 => 
>   
> Google\AdsApi\AdWords\v201710\cm\FeedItemPolicyData::__set_state(array(
>  'placeholderType' => 35,
>  'feedMappingId' => 'B s',
>  ..
>
> so microAmount, feedId, feedItemId, feedMappingId are wrong too
>
> running http://mysite.com/myfile.php - all is good
>
> please assist
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8aa2f56a-c51f-41a6-a1b1-2fb8b56c2705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google API Price extension - corrupted data (CampaignId, microAmount, feedItemId, feedMappingId)

2017-12-01 Thread Alexander Popov
hi Peter. sent reply using "*Reply privately to author*" thanks

On Friday, December 1, 2017 at 12:47:52 AM UTC-6, Peter Oliquino wrote:
>
> Hi Alexander,
>
> In order to better investigate your concern, could you provide the 
> complete SOAP request and response that was generated when you encountered 
> the error? You may reply using the *Reply privately to author* option.
>
> Thanks and regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6699ef57-b77c-448f-b0a4-4abfc1ed5ab6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google API Price extension - corrupted data (CampaignId, microAmount, feedItemId, feedMappingId)

2017-11-30 Thread Alexander Popov
Hi.
We Use PHP and I was following examples: 
https://developers.google.com/adwords/api/docs/guides/extension-settings#update_ad_extensions
 
and everything works fine if i run code in browser like 
http://mysite.com/myfile.php so code is inside "myfile.php" file

But if I run using cron, I get:
exception 'Google\AdsApi\AdWords\v201710\cm\ApiException' with message 
'[EntityNotFound.INVALID_ID @ operations[0].operand.campaignId; 
trigger:'CampaignId: 94408149']' in 
/PATH/TO/LIBRARY/lib/Google/src/Google/AdsApi/Common/Util/Reflection.php:39

SOAP:
AW_SOAP.WARNING: clientCustomerId=MY-ID operations=3 
service=CampaignExtensionSettingService method=mutate responseTime=160 
requestId=00055f3907c35e200a3f3b12820373fb server=adwords.google.com 
isFault=1 faultMessage=[EntityNotFound.INVALID_ID @ 
operations[0].operand.campaignId; trigger:'CampaignId: 94408149'] 

part of code we use:
$campaignId = "944081497";
$campaignExtensionSettingService = $adWordsServices->get($session, 
CampaignExtensionSettingService::class);

$selector = new Selector();
$selector->setFields(['CampaignId', 'ExtensionType', 'Extensions']);
$selector->setPredicates([
new Predicate('CampaignId', PredicateOperator::EQUALS,
[$campaignId]),
new Predicate('ExtensionType', PredicateOperator::EQUALS,
[FeedType::PRICE])
]);

$page = $campaignExtensionSettingService->get($selector);

$campaignExtensionSetting = $page->getEntries()[0];
$campaignExtensionSetting->setExtensionType(FeedType::PRICE);


If I debug $campaignExtensionSetting->getCampaignId(); - I get corrupted 
value ”@ I (get 944081497 if run in http://mysite.com/myfile.php)

Again if I run http://mysite.com/myfile.php I get 944081497 which is right. 
So in error above you see "94408149" which is missing 7 in the end and 
that's why doesn't work. 
I've tried intval() to floatval() as suggested here 
https://groups.google.com/forum/#!topic/adwords-api/NEjJg_7GXQw but it 
doesn't help..
What can be a reason that Google returns corrupted ID?

I noticed that other data is corrupted:

Google\AdsApi\AdWords\v201710\cm\CampaignExtensionSetting::__set_state(array(
   'campaignId' => '”@ I',
   'extensionType' => 'PRICE',
   

Google\AdsApi\AdWords\v201710\cm\Money::__set_state(array(
 'microAmount' => ' 4p' . "\0" . '',

'feedId' => '9 …U',
 'feedItemId' => ' V…xf',
 'policyData' => 
array (
  0 => 
  
Google\AdsApi\AdWords\v201710\cm\FeedItemPolicyData::__set_state(array(
 'placeholderType' => 35,
 'feedMappingId' => 'B  s',
 ..

so microAmount, feedId, feedItemId, feedMappingId are wrong too

running http://mysite.com/myfile.php - all is good

please assist

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/332bfe6a-c7b8-44e9-8be6-13620007a4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why should I create an AdWords Manager Account

2017-10-15 Thread Alexander Ivanov ✔
Could you explain me why I need a manager account (*МА*)?
 
As a developer I tried to call the script with budgetOrderIterator and I 
got the error 'This AdWords account is not whitelisted for this feature.' 
After creating the *MA* I can call this feature.
 
Are there the best practice to use an AdWords Manager Account?
How can I understand this like a developer?
 
Cheers!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e85b3a54-69ca-46b2-9032-431cb8dcc1aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BatchJobProcessingError.INTERNAL_ERROR

2017-05-09 Thread Alexander Cavalli
Thanks Josh, finally got back around to testing this and everything seems 
to be working. Appreciate it!

On Friday, May 5, 2017 at 6:54:22 PM UTC-5, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Alexander,
>
> A fix is now in place for this issue. If you see any odd behavior on new 
> batch jobs, please let me know.
>
> Thanks,
> Josh, AdWords API Team
>
> On Friday, May 5, 2017 at 2:27:13 PM UTC-4, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Alexander,
>>
>> We started seeing reports of this issue yesterday (5/4) from other users 
>> as well, and we're working on a fix. I'll post back here as soon as I have 
>> an update.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Friday, May 5, 2017 at 12:41:23 PM UTC-4, Alexander Cavalli wrote:
>>>
>>> Hi Shwetha,
>>>
>>> Yes, BatchJobProcessingError.INTERNAL_ERROR is the reason for the 
>>> cancel. 
>>>
>>> Thanks!
>>>
>>> On Friday, May 5, 2017 at 11:30:13 AM UTC-5, Shwetha Vastrad (AdWords 
>>> API Team) wrote:
>>>>
>>>> Hi Alexander,
>>>>
>>>> Thank you for providing the sample BatchJobId. Do your BatchJobs get 
>>>> canceled due to BatchJobProcessingError.INTERNAL_ERROR as well? 
>>>>
>>>> Sam, Could you send over the Ids of a few BatchJobs which were canceled 
>>>> with the error as BatchJobProcessingError.INTERNAL_ERROR? 
>>>>
>>>> Thanks,
>>>> Shwetha, AdWords API Team.
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1e725436-7148-4597-af70-8d5e01b28d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BatchJobProcessingError.INTERNAL_ERROR

2017-05-05 Thread Alexander Cavalli
Hi Shwetha,

Yes, BatchJobProcessingError.INTERNAL_ERROR is the reason for the cancel. 

Thanks!

On Friday, May 5, 2017 at 11:30:13 AM UTC-5, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi Alexander,
>
> Thank you for providing the sample BatchJobId. Do your BatchJobs get 
> canceled due to BatchJobProcessingError.INTERNAL_ERROR as well? 
>
> Sam, Could you send over the Ids of a few BatchJobs which were canceled 
> with the error as BatchJobProcessingError.INTERNAL_ERROR? 
>
> Thanks,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ad911d39-2aa7-4cc2-9348-f07f0cf7b31a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BatchJobProcessingError.INTERNAL_ERROR

2017-05-05 Thread Alexander Cavalli
We are also getting this error, pretty regularly. It seems to have started 
sometime in the afternoon (CST) on 5/4/2017. From my testing it seems like 
it might be happening more on jobs that use temp ids, in particular 
multiple temp ids. Sample failed batch job id: 491491905

On Friday, May 5, 2017 at 10:32:33 AM UTC-5, s...@feedonomics.com wrote:
>
> We are getting this error intermittently with some our batch jobs, which 
> end up with status 'CANCELED'.
>
> Please help. Thank you!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb87ef4b-103f-4416-94e1-6eefd1460296%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


API no longer delivering YouTube data?

2017-03-22 Thread Alexander Volk

I'm using a data integration tool called Data Virtuality to pull data from 
the AdWords API. The tool structures translates calls to different sources 
into SQL.

Below is an example query that is set up to retrieve Youtube Network data. 
This query stopped delivering data on Jan. 30th with no change to it or any 
perceivable change to the API. There are also still active YouTube 
campaigns in the queried MCC.

Has there been any change that I might not be aware of?

Thanks in advance for any help!


SELECT

  cast(CustomerDescriptiveName as string(200)) as Advertiser
   ,"Date"

   ,cast(AdNetworkType1 as string(200)) as AdNetworkType1

   ,cast(AdNetworkType2 as string(200)) as AdNetworkType2

   ,CAST( TO_CHARS( TO_BYTES( "CampaignName", 'iso-8859-15' ) , 
'UTF-8' )  as string(200) ) as "CampaignName"

   ,cast(CampaignStatus as string(200)) as CampaignStatus

   ,CAST( TO_CHARS( TO_BYTES( "AdGroupName", 'iso-8859-15' ) , 
'UTF-8' )  as string(200) ) as "AdGroupName"

   ,cast(AdGroupStatus as string(200)) as AdGroupStatus

   ,Device

   ,Clicks

   ,Impressions

   ,cast(Cost as double) /100 as cost

   ,VideoViews

   ,VideoQuartile25Rate

   ,VideoQuartile50Rate

   ,VideoQuartile75Rate

   ,Slot

   FROM

   xm_adwords.customer_id cust

   ,table (

   call xm_adwords.getCRITERIA_PERFORMANCE_REPORT (

   cust.customerid,

   timestampadd (SQL_TSI_DAY,- 30,curdate ())

   ,timestampadd (SQL_TSI_DAY,- 1,curdate ())

   ,'AccountDescriptiveName,

   AccountTimeZoneId,

   AdgroupID,

   AdgroupName,

   Adgroupstatus,

   AdNetworkType1,

   AdNetworkType2,

   AdType,

   CampaignId,

   CampaignName,

   CampaignStatus,

   Clicks,

   Cost,

   CreativeDestinationUrl,

   CustomerDescriptiveName,

   Date,

   Description1,

   Description2,

   Device,

   DisplayURL,

   ExternalCustomerId,

   Headline,

   ImageCreativeName,

   Impressions,

   Name,

   VideoViews,

   VideoQuartile25Rate,

   VideoQuartile50Rate,

   VideoQuartile75Rate,

   VideoQuartile100Rate,

   Slot'

   )

   ) kpi

   where

   canManageclients = false


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9403c5b9-8349-4d3e-a88e-e7683bd3b778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >