Adswords Download error - AdWordsReportError

2017-08-08 Thread Zhen
Hi,
I'm trying to get GEO_PERFORMANCE_REPORT from API. 
When I tried with the sample "CRITERIA_PERFORMANCE_REPORT", the call is 
successful, when I tried with GEO_PERFORMANCE_REPORT, I get below errors:

from googleads import adwords

def main(client):
  # Initialize appropriate service.
report_downloader = client.GetReportDownloader(version='v201705')


  # Create report query.
report_query = ('SELECT CampaignId FROM GEO_PERFORMANCE_REPORT '

  )


queried_string = report_downloader.DownloadReportAsStringWithAwql(
   report_query, 'CSV', skip_report_header=False, skip_column_header=
False,
   skip_report_summary=False, include_zero_impressions=True)
return queried_string

adwords_client = adwords.AdWordsClient.LoadFromStorage()
query = main(adwords_client)

---AdWordsReportError
Traceback (most recent call 
last) in ()  1 adwords_client = 
adwords.AdWordsClient.LoadFromStorage('/home/zhge/purchase_journey/gg_api_call/googleads.yaml')>
 2 query = main(adwords_client)
 in main(client) 24 queried_string = 
report_downloader.DownloadReportAsStringWithAwql( 25report_query, 
'CSV', skip_report_header=False, skip_column_header=False,---> 26
skip_report_summary=False, include_zero_impressions=True) 27 return 
queried_string 28 
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/common.pyc
 in Wrapper(*args, **kwargs)527   with _UTILITY_LOCK:528 
_utility_registry.Add(registry_name)--> 529   return utility_method(*args, 
**kwargs)530 return Wrapper531 
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/adwords.pyc
 in DownloadReportAsStringWithAwql(self, query, file_format, **kwargs)   1453   
  try:   1454   response = self._DownloadReportAsStream(-> 1455   
self._SerializeAwql(query, file_format), **kwargs)   1456   return 
response.read().decode('utf-8')   1457 finally:
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/adwords.pyc
 in _DownloadReportAsStream(self, post_body, **kwargs)   1616 
'Request Summary: %s', self._ExtractRequestSummaryFields(   1617
 request, error=e))-> 1618   raise self._ExtractError(e)   16191620   
def _SanitizeRequestHeaders(self, headers):
AdWordsReportError: AdWords report download failed with HTTP status code: 400



I tried to get the fields for GEO_PERFORMANCE_REPORT, and I was able to do 
that.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c692d3ae-8d43-4de2-ab2a-ad51053fb273%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWordsReportError

2017-08-08 Thread Zhen
Hi,
I'm trying to get GEO_PERFORMANCE_REPORT from API. 
When I tried with the sample "CRITERIA_PERFORMANCE_REPORT", the call is 
successful, when I tried with GEO_PERFORMANCE_REPORT, I get below errors:

from googleads import adwords

def main(client):
  # Initialize appropriate service.
report_downloader = client.GetReportDownloader(version='v201705')


  # Create report query.
report_query = ('SELECT CampaignId FROM GEO_PERFORMANCE_REPORT '

  )


queried_string = report_downloader.DownloadReportAsStringWithAwql(
   report_query, 'CSV', skip_report_header=False, skip_column_header=
False,
   skip_report_summary=False, include_zero_impressions=True)
return queried_string

adwords_client = adwords.AdWordsClient.LoadFromStorage()
query = main(adwords_client)

---AdWordsReportError
Traceback (most recent call 
last) in ()  1 adwords_client = 
adwords.AdWordsClient.LoadFromStorage('/home/zhge/purchase_journey/gg_api_call/googleads.yaml')>
 2 query = main(adwords_client)
 in main(client) 24 queried_string = 
report_downloader.DownloadReportAsStringWithAwql( 25report_query, 
'CSV', skip_report_header=False, skip_column_header=False,---> 26
skip_report_summary=False, include_zero_impressions=True) 27 return 
queried_string 28 
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/common.pyc
 in Wrapper(*args, **kwargs)527   with _UTILITY_LOCK:528 
_utility_registry.Add(registry_name)--> 529   return utility_method(*args, 
**kwargs)530 return Wrapper531 
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/adwords.pyc
 in DownloadReportAsStringWithAwql(self, query, file_format, **kwargs)   1453   
  try:   1454   response = self._DownloadReportAsStream(-> 1455   
self._SerializeAwql(query, file_format), **kwargs)   1456   return 
response.read().decode('utf-8')   1457 finally:
/home/zhge/purchase_journey/peanutbutter_jelly/env/local/lib/python2.7/site-packages/googleads/adwords.pyc
 in _DownloadReportAsStream(self, post_body, **kwargs)   1616 
'Request Summary: %s', self._ExtractRequestSummaryFields(   1617
 request, error=e))-> 1618   raise self._ExtractError(e)   16191620   
def _SanitizeRequestHeaders(self, headers):
AdWordsReportError: AdWords report download failed with HTTP status code: 400



I tried to get the fields for GEO_PERFORMANCE_REPORT, and I was able to do 
that.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/148f8cd2-505c-4070-98d0-4bc0bd20f5b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER - Java SDK setServiceAccountUser missing?

2017-08-08 Thread 'Peter Oliquino' via AdWords API Forum
Hi John,

My apologies for the difficulty you experienced in setting up your service 
account using the Java library. I could see that you have already gotten in 
touch (here ) 
with the Java library owners and I'm glad that you have found the solution 
and is now able to continue with your work. 

Regarding your suggestion - and thank you by the way, I will be discussing 
this with the team, however, I cannot guarantee if or when this can be 
available in any of the next releases.

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/ca1cd99e-e75a-40be-abfd-53eef6d7dc6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Downloading AdWords API report with Dynamic Search Targets

2017-08-08 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello, 

Could you provide us privately (via *Reply privately to author*) your 
clientCustomerId and the Report definition 

 you 
used for the Criteria Performance Report, so I can take a look? 

Regards,
Bharani Cherukuri
AdWords API Team

On Tuesday, August 8, 2017 at 12:51:11 PM UTC-4, rachelh...@gmail.com wrote:
>
> I'm trying to download an adwords API report with the Dynamic Search 
> Targets. Using the Criteria Performance Report, with the following fields, 
> Campaign Name, AdGroupName, Status and Parameter but cannot get anything to 
> come back. Am I using the correct fields to get the info that I want?
> Thanks
> Rachel
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/67af6fb1-e4d6-45dd-9107-b0f075e02976%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro] while uploading bulk images in Media Service for Responsiv

2017-08-08 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, 

Can you try uploading more than one Image in a single request to 
MediaService.upload() 

 and 
let me know if you face any issues?

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/fce25a53-5561-455b-98c9-e6f5d6faec98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Adwords account linked to more MCCs

2017-08-08 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello Richard,

An individual AdWords account can be linked to no more than five Manager 
accounts. You can refer to the account limits documentation listed here 
. 
This said, BudgetOrderService 
 enables 
only the approved managers to create account-level budgets for the client 
account. The invoicing and payments are not affected when an account is 
linked to a new manager account. However, the newly linked manager account 
will continue to have access to the account's billing and sign-in 
information. Even if the AdWords account is linked to multiple Manager 
accounts, only one budget will be active at a time. It is not possible for 
MCC-B to make any changes to the existing BudgetOrder of your account, but 
they can create a new BudgetOrder when the existing budget is completed. 

Let me know if you have any other questions.

Regards,
Bharani Cherukuri
AdWords API Team

On Tuesday, August 8, 2017 at 10:36:34 AM UTC-4, Richard Tési wrote:
>
> Hi all,
>
> I would like to ask, whether you met with a situation, where one Adwords 
> account is linked to more Manager Accounts?
> Lets take that the Adwords account is linked to two Manager accounts 
> (MCC-A and MCC-B). MCC-A sets up a Budget Order on the Adwords account. Is 
> there a way to prevent MCC-B from editing/removing the budget order or 
> creating a new budget order?
>
> Thank you for your help.
>
> Regards,
>
> Richard
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7866680e-1410-4784-83aa-fb8aab57fc77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Load campaigns with manager account

2017-08-08 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Jerry, 

You need to run this example against an AdWords client account, not a 
manager account. You need to provide the list of CampaignIds in the 
CustomerSyncSelector 
.
 
Since Campaigns are associated with client accounts, CampaignService 

 will 
not return any results and you'll get a *CustomerSyncError* if you run this 
example against a manager account. 

Regards,
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/1d2d0494-3094-4a34-bfc6-b03ca8ac5d45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Downloading AdWords API report with Dynamic Search Targets

2017-08-08 Thread rachelhardman64
I'm trying to download an adwords API report with the Dynamic Search 
Targets. Using the Criteria Performance Report, with the following fields, 
Campaign Name, AdGroupName, Status and Parameter but cannot get anything to 
come back. Am I using the correct fields to get the info that I want?
Thanks
Rachel

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cc611929-1c9f-4da1-a2a9-04b47cba9d0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: There is any solution with limits of matchingFunction when i go over 20 items

2017-08-08 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

The rhsOperand 

 while 
using the IN operator has a limit of 20 ConstantOperands. Please check the 
documentation 

 for 
reference. You will have to make sure that the number of feed item ids that 
you are setting is 20 or less than that. 

Thanks,
Sreelakshmi, 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/2fa8d26c-13f4-4bf0-82ed-dd04a7aeb9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Load campaigns with manager account

2017-08-08 Thread ihsgdeveloper
Hi Shwetha,

I just checked your code sample. 

https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201705/AccountManagement/GetAccountChanges.php

is it able to run under MCC account ? I just test it, no any campaign ids 
return. when I set the customer id to my manager account id.

Thanks,
Jerry


On Friday, August 4, 2017 at 1:59:49 AM UTC+8, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi,
>
> Since Campaigns are associated with AdWords client accounts, and not 
> AdWords manager accounts, CampaignService 
> 
>  will 
> not return any results if the target account is an AdWords Manager account. 
> You need to set the clientCustomerId in the request to the customerId of a 
> non-manager account. The ManagedCustomerService 
> 
>  can 
> be used to get account information, and if 
> ManagedCustomer.canManageClients 
> 
>  is 
> true then the account is a manager account. You can then submit a separate 
> request for each client account by setting the clientCustomerId 
> appropriately. The GetAccountHierarchy 
> 
>  Java 
> example shows how to use ManagedCustomerService to get the account 
> hierarchy under a manager account. Example code in other languages can be 
> found here 
> .
>
> Regards,
> 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/02235ee2-033c-484e-a888-7c5a61402280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


One Adwords account linked to more MCCs

2017-08-08 Thread Richard Tési
Hi all,

I would like to ask, whether you met with a situation, where one Adwords 
account is linked to more Manager Accounts?
Lets take that the Adwords account is linked to two Manager accounts (MCC-A 
and MCC-B). MCC-A sets up a Budget Order on the Adwords account. Is there a 
way to prevent MCC-B from editing/removing the budget order or creating a 
new budget order?

Thank you for your help.

Regards,

Richard

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/117f5c10-88e2-4886-bc91-a23ae152e508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER - Java SDK setServiceAccountUser missing?

2017-08-08 Thread John Reynolds
FYI - I ended up getting that working.

Yes, I followed all of the steps to create the service account and 
authorize it for our Google Apps Domain. That isn't the issue.

All of the sample code and examples for using the Service Account fail to 
show where or how to set the ServiceAccountUser on the GoogleCredential 
returned from OfflineCredentials Builder.

Simply specifying the location of the JSON file in the ads.properties file 
only gets you so far. You can receive an accessToken on the 
GoogleCredential created with the OfflineCredentials Builder, but I could 
not set the serviceAccountUser as that appears to be required at build 
time. It would be ideal to have a property for this user in the 
ads.properties file, or allow for setting this in the OfflineCredentials 
Builder object.

You are correct that there are a lot of ways to configure impersonation and 
I managed to dig into the code and replicate my own builder that pulled 
from the ServiceAccount JSON file and allows for specifying the 
ServiceAccount user, but I'm not sure why OfflineCredentials and the 
Adwords Java library doesn't support this. Again, it looks like some of the 
other SDKs do support specifying the service account user in a property. 
(e.g. Ruby's YAML "ouath2_prn")

Something like this would be a great addition to the next release of the 
Java SDK.

Credential oAuth2Credential = new OfflineCredentials.Builder()
.forApi(OfflineCredentials.Api.ADWORDS)
.fromFile()
*.withServiceAccountUser("u...@domain.com")*
.build()
.generateCredential();


Thanks for the reply!

John


On Monday, August 7, 2017 at 11:14:25 PM UTC-7, Peter Oliquino wrote:
>
> Hi John, 
>
> Could you provide the following details? 
>
>- Do you have a Google Apps Domain? To use service accounts with 
>AdWords, a Google Apps Domain is required (as mentioned on the wiki 
>page for service accounts 
>
> 
>).
>- Have you been granted access to the G Suite (former Google Apps) 
>account that you have? 
>
> Depending on the library you use, impersonation can be configured 
> differently. If you are working with a single user I suggest using installed 
> application 
> .
>  
> With installed application flow you need to authorize each Google account 
> individually. So, you'd need to have each of these users go through the 
> authorization flow and then manage a separate access/refresh token per 
> email address. The authorization step (browser step) for installed 
> application is needed only once and can be done outside of your production 
> environment. All you need is the refresh token which can be cached and 
> deployed with your app. Please see this document 
> 
>  for 
> more information on setting up authentication. 
>
> Best 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/0cac0ba5-ab92-42b0-9b84-f8e8acdefb96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linking ad, keyword, and placement performance reports

2017-08-08 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

ValueTrack allows you to add various attributes *of each click* to the 
tracking URL template and final URLs of your account, so by definition the 
ValueTrack parameter values are for a single impression. If you want to get 
metrics such as impressions for a given date range (across all your 
clicks), then you'll want to use reports. Check out the Reporting guide 
 and the 
list of reports 
 for more 
info.

Thanks,
Josh, AdWords API Team

On Tuesday, August 8, 2017 at 7:50:22 AM UTC-4, Александр Великий wrote:
>
> Will ValueTrack parameters 
>  allow 
> to get impressions in some way?
>
> On Friday, July 17, 2015 at 12:37:42 AM UTC+3, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> It still is not possible to get ad-level information from either the 
>> AdWords API placement reports or the AdWords user interface.
>>
>> Note that the *KeywordId* field in the AD_PERFORMANCE_REPORT 
>> 
>>  will 
>> contain the ID of whichever criterion triggered the ad, not just 
>> *Keyword*s. Therefore, for impressions that the single attribution model 
>> 
>>  attributed 
>> to placements, you will get *Placement* criterion IDs in that field. 
>> However, it's highly likely that this will not be the case for many 
>> impressions for a given *Placement*.
>>
>> If capturing the ad -> placement association is critical for your use 
>> case, you could include the *{creative}* and *{placement}* ValueTrack 
>> parameters 
>>  in 
>> your URLs, and then capture that information in your tracker.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Thursday, July 16, 2015 at 7:03:20 AM UTC-4, Scott Desgrosseilliers 
>> wrote:
>>>
>>> Is this now possible 3 years later??
>>>
>>> On Wednesday, March 14, 2012 at 6:46:58 PM UTC-4, vinyl wrote:

 Hi all,

 I'm trying to link the ad, keyword, and placement reports to better 
 analyze the performance of various keywords/ads. However, I'm having 
 trouble folding the placement results in, while keeping the basic 
 dimensions I'd like.

 I'm trying to use adID (Ad Performance Report, ID column), keyword, and 
 domain (Automatic Placements Report, domain column); with the Search 
 Network, I'll have something for adID and keyword, while for the Display 
 Network, I'm expecting to be able to group along the adID and placement. 
 In 
 either case, I'm hoping to line up impressions, clicks, and cost data from 
 the API reports with our internally collected revenue numbers.

 For the keywords, I can join the Ad Performance and Keyword Performance 
 reports by keywordID and everything works well; however, adID does not 
 exist in the Placements report. Does this mean this combination of 
 dimensions is impossible to use for analyzing the Display Network?

 I have seen the thread at 
 https://groups.google.com/forum/?fromgroups#!topic/adwords-api/-_6nYWMOgVs,
  
 but while that doesn't seem to have been totally resolved, the only 
 suggested solution was to avoid using adID as a dimension (and instead go 
 with adGroupID).

 Thanks!

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8a325bbe-e253-4d7f-9e48-df1077dc951b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linking ad, keyword, and placement performance reports

2017-08-08 Thread Александр Великий
Will ValueTrack parameters 
 allow to 
get impressions in some way?

On Friday, July 17, 2015 at 12:37:42 AM UTC+3, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> It still is not possible to get ad-level information from either the 
> AdWords API placement reports or the AdWords user interface.
>
> Note that the *KeywordId* field in the AD_PERFORMANCE_REPORT 
> 
>  will 
> contain the ID of whichever criterion triggered the ad, not just *Keyword*s. 
> Therefore, for impressions that the single attribution model 
> 
>  attributed 
> to placements, you will get *Placement* criterion IDs in that field. 
> However, it's highly likely that this will not be the case for many 
> impressions for a given *Placement*.
>
> If capturing the ad -> placement association is critical for your use 
> case, you could include the *{creative}* and *{placement}* ValueTrack 
> parameters 
>  in 
> your URLs, and then capture that information in your tracker.
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, July 16, 2015 at 7:03:20 AM UTC-4, Scott Desgrosseilliers 
> wrote:
>>
>> Is this now possible 3 years later??
>>
>> On Wednesday, March 14, 2012 at 6:46:58 PM UTC-4, vinyl wrote:
>>>
>>> Hi all,
>>>
>>> I'm trying to link the ad, keyword, and placement reports to better 
>>> analyze the performance of various keywords/ads. However, I'm having 
>>> trouble folding the placement results in, while keeping the basic 
>>> dimensions I'd like.
>>>
>>> I'm trying to use adID (Ad Performance Report, ID column), keyword, and 
>>> domain (Automatic Placements Report, domain column); with the Search 
>>> Network, I'll have something for adID and keyword, while for the Display 
>>> Network, I'm expecting to be able to group along the adID and placement. In 
>>> either case, I'm hoping to line up impressions, clicks, and cost data from 
>>> the API reports with our internally collected revenue numbers.
>>>
>>> For the keywords, I can join the Ad Performance and Keyword Performance 
>>> reports by keywordID and everything works well; however, adID does not 
>>> exist in the Placements report. Does this mean this combination of 
>>> dimensions is impossible to use for analyzing the Display Network?
>>>
>>> I have seen the thread at 
>>> https://groups.google.com/forum/?fromgroups#!topic/adwords-api/-_6nYWMOgVs, 
>>> but while that doesn't seem to have been totally resolved, the only 
>>> suggested solution was to avoid using adID as a dimension (and instead go 
>>> with adGroupID).
>>>
>>> Thanks!
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d6ca8061-bcc9-4fc3-9fce-0d609f8038af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Possible to select multiple QueryMatchTypeWithVariant in AWQL query?

2017-08-08 Thread Jonas Bolin
Thanks Shwetha!

On Tuesday, 11 July 2017 20:13:50 UTC+2, Shwetha Vastrad (AdWords API Team) 
wrote:
>
> Hi Jonas,
>
> You can use the IN operator and provide a list predicate values in the 
> query to check if the field is equal to one of the given values. The 
> predicate should look something like this:
>
> WHERE QueryMatchTypeWithVariant IN ["BROAD", "PHRASE"]
>
> The formal AWQL grammar is provided here 
> 
> . 
>
> Regards,
> 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/d787e0b3-941c-4b8d-a914-c2cd0befd241%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


issue with limit of feed items in the matchingfunction

2017-08-08 Thread Abdelghani GUILIGHE
Hi, 
I develop an application using php and I have a problem with 
matchingFunction when I go over 20 items.

Here's my code :

($arrSiteLinkFeedItemsIds this array have over 20 items)
$matchingFunctionString = sprintf(
'AND( IN(FEED_ITEM_ID, {%s}), EQUALS(CONTEXT.DEVICE, "Desktop") )',
implode(',', $arrSiteLinkFeedItemsIds)
  );

// Create a campaign feed and its feed function.
$campaignFeed = new CampaignFeed();
$campaignFeed->setFeedId($sitelinksData['sitelinksFeedId']);
$campaignFeed->setCampaignId($campaignId);

$matchingFunction = new MatchingFunction();
$matchingFunction->setFunctionString($matchingFunctionString);
$campaignFeed->setMatchingFunction($matchingFunction);
$campaignFeed->setPlaceholderTypes([self::PLACEHOLDER_SITELINKS]);

Any help please,  

Best,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7b4562f9-c9f1-4b30-9b5f-b63e022c8bd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


There is any solution with limits of matchingFunction when i go over 20 items

2017-08-08 Thread Abdelghani GUILIGHE
Hi,

when I go over 20 feed items in the camaping Feed, I have this error : 


[CollectionSizeError.TOO_MANY @ 
operations[0].operand.matchingFunction.lhsOperand[0].value.rhsOperand] 

please how can I solve this, I'm working with PHP client library.

Here's the code :

($arrSiteLinkFeedItemsIds this array have over 20 items)
$matchingFunctionString = sprintf(
'AND( IN(FEED_ITEM_ID, {%s}), EQUALS(CONTEXT.DEVICE, "Desktop") )',
implode(',', $arrSiteLinkFeedItemsIds)
  );

// Create a campaign feed and its feed function.
$campaignFeed = new CampaignFeed();
$campaignFeed->setFeedId($sitelinksData['sitelinksFeedId']);
$campaignFeed->setCampaignId($campaignId);

$matchingFunction = new MatchingFunction();
$matchingFunction->setFunctionString($matchingFunctionString);
$campaignFeed->setMatchingFunction($matchingFunction);
$campaignFeed->setPlaceholderTypes([self::PLACEHOLDER_SITELINKS]);

Best Regards,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/347c1a98-7809-445f-b0c9-4d26f38639f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to filter keywords using a adgroup id list?

2017-08-08 Thread 'Peter Oliquino' via AdWords API Forum
Hi Eduardo,

Since you are filtering through a list, could you try and use the "IN" 
operator instead? If the issue persists, could you provide more information 
regarding the issue you are encountering? If you are using an AdWords API 
service, could you  provide the SOAP request and response? If you have not 
enabled SOAP logging, you may refer to this guide 

. 

If you are using a report type, you may send to me the complete report 
definition 

 instead. 
You may reply using *Reply privately to author*.

Best 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/0591159a-f561-4f8b-9e04-bf78ce00397e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to update existing keyword text using adwords php client library ?

2017-08-08 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Sarvagya,

Could you confirm if this is the same issue on the other forum post 

 that 
you created? Your description in this post is updating keyword text but the 
code is about getting AdGroupCriterion same as the other forum post. If you 
can confirm that this is the same issue on the other post, then let us 
continue the discussion there so that there will be one thread to monitor 
for your issue.

Thanks,
Vincent
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/a959d61f-dace-4385-b9b7-772afb26653c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to change the campaign of an Adgroup?

2017-08-08 Thread 'Peter Oliquino' via AdWords API Forum
Hi Eduardo,

Changing the campaign of a specific ad group is not supported in the 
AdWords API. You will need to REMOVE the current ad group and recreate it 
by specifying a different CampaignId 

 and 
passing it to the ADD operator of the AdGroupService 

.

Best 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/23880587-54bb-4925-9ad2-0926a1203fa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get FinalUrls of keyword using API

2017-08-08 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Sarvagya,

Could you provide your clientCustomerId and SOAP request and response logs 
so I can check this issue further? If you haven't enabled the SOAP logs 
yet, you can enable it by following the 'Configure logging' section of this 
document 
. 
Please use the *Reply privately to author* option when replying.

Thanks,
Vincent
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/a3fd733b-439b-43d5-98cf-5bbe017bb354%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: i lost my google adword account how i can get it back?

2017-08-08 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Adnan,

It seems that your concern is more specific to the AdWords product level. 
Our team handles AdWords API related issues/concerns only. Please post this 
concern in the AdWords Community forum 

.

Thanks,
Vincent
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/cda409e6-7256-40bd-aa7a-9b743a37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to filter keywords using a adgroup id list?

2017-08-08 Thread Eduardo Cesar
I tried this get query (python wrapper):

selector = {
'fields': ['FinalUrls', 'AdGroupId'],
'predicates': [
{
'field': 'AdGroupId',
'operator': 'EQUALS',
'values': ad_group_id_list
}
]
}

However, I received a 'unexpected erro' in response.
When I change the 'ad_group_id_list' to '[ad_group_id_list[0]]' the query 
returned the correct response. 
Is it possible to filter keywords using a adgroup id list?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/15c8561c-678c-4383-9be5-d9f833a9b1ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to change the campaign of an Adgroup?

2017-08-08 Thread Eduardo Cesar
How can I change de campaign of a specifc Adgroup. I tried the code bellow, 
but did not work. Error: Server raised fault: '[EntityNotFound.INVALID_ID @ 
operations[0].operand.id; trigger:'AdGroupId: 19961385808']'  (I have 
certain that this Adgroup exists)

def change_campaign(ad_group_service, ad_group_id, campaign_id):
"""Change the campaign id"""
operations = [{
'operator': 'SET',
'operand': {
'id': ad_group_id,
'campaignId': campaign_id
}
}]

ad_group_service.mutate(operations)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/38e2ce27-8a23-47fa-9636-0a0e8863382a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to update existing keyword text using adwords php client library ?

2017-08-08 Thread Sarvagya Pandey
How to update a Keyword Final URL
*Code I am using:*

// Get the service, which loads the required classes.
$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);
// Create selector.
$selector = new Selector();
$selector->setFields(['KeywordText', 'KeywordMatchType', 
'Id','Status','TopOfPageCpc','CpcBid','FinalUrls']);
$selector->setOrdering([new OrderBy('KeywordText', 'ASCENDING')]);
// Create predicates.
$selector->setPredicates([new Predicate('AdGroupId', PredicateOperator::IN, 
[$adGroupId]  )] );
$selector->setPredicates([new Predicate('CriteriaType', 
PredicateOperator::IN, ['KEYWORD']  )] );
$selector->setPredicates([new Predicate('Id', PredicateOperator::IN, 
[$keywordId]  )] );

// Make the get request.
$page = $adGroupCriterionService->get($selector);
foreach ($page->getEntries() as $adGroupCriterion) {
   var_dump($adGroupCriterion);
}


*Response :*

Google\AdsApi\AdWords\v201609\cm\BiddableAdGroupCriterion Object
(
[userStatus:protected] => ENABLED
[systemServingStatus:protected] => 
[approvalStatus:protected] => 
[disapprovalReasons:protected] => 
[destinationUrl:protected] => 
[firstPageCpc:protected] => 
[topOfPageCpc:protected] => Google\AdsApi\AdWords\v201609\cm\Bid Object
(
[amount:protected] => Google\AdsApi\AdWords\v201609\cm\Money 
Object
(
[microAmount:protected] => 123456
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

)

[firstPositionCpc:protected] => 
[qualityInfo:protected] => 
[biddingStrategyConfiguration:protected] => 
Google\AdsApi\AdWords\v201609\cm\BiddingStrategyConfiguration Object
(
[biddingStrategyId:protected] => 
[biddingStrategyName:protected] => 
[biddingStrategyType:protected] => MANUAL_CPC
[biddingStrategySource:protected] => 
[biddingScheme:protected] => 
[bids:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201609\cm\CpcBid Object
(
[bid:protected] => 
Google\AdsApi\AdWords\v201609\cm\Money Object
(
[microAmount:protected] => 1234
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

[cpcBidSource:protected] => CRITERION
[BidsType:protected] => 
[Bids.Type] => CpcBid
)

)

)

[bidModifier:protected] => 
[finalUrls:protected] => 
[finalMobileUrls:protected] => 
[finalAppUrls:protected] => 
[trackingUrlTemplate:protected] => 
[urlCustomParameters:protected] => 
[adGroupId:protected] => 12343924932
[criterionUse:protected] => BIDDABLE
[criterion:protected] => Google\AdsApi\AdWords\v201609\cm\Keyword Object
(
[text:protected] => Test Keyword ABCD
[matchType:protected] => PHRASE
[id:protected] => 12343743102
[type:protected] => KEYWORD
[CriterionType:protected] => 
[Criterion.Type] => Keyword
)

[labels:protected] => 
[forwardCompatibilityMap:protected] => 
[baseCampaignId:protected] => 
[baseAdGroupId:protected] => 
[AdGroupCriterionType:protected] => 
[AdGroupCriterion.Type] => BiddableAdGroupCriterion
)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bca84f70-8eb0-45be-a7a1-68b899f0f005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trying to get performance report on individual Display Ads across Placements

2017-08-08 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Garik,

The information regarding your report was passed on by Peter to me, so I 
have also seen the screenshot you attached in your thread.

Based on your screenshot, it seems that you are using a Google Analytics 
integration in retrieving the report. However, there are only four Google 
Analytics columns that is supported in AdWords API as described here 
. 
If you are using Google Analytics API, you can run queries to fetch 
reporting data. You can see here 

 the 
available metrics for AdWords in the Google Analytics API.

Back to the concern regarding Ad Performance Report with CriterionType 
filter, apologies if I was not able to make it clear in my previous 
response that this report will only return the ads which triggers a 
particular CriterionType. In your case, all your ads are triggered by 
KEYWORD CriterionType, so there are no ads being returned with PLACEMENT 
type.

The Ad Performance Report is the only report type which has a CriterionType 

 field. 
So currently, it is not possible in the API to generate the report data 
same as your screenshot.

Thanks,
Vincent
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/752d50ec-08cd-42ee-9c02-843554085686%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which keyword (states) are included in SEARCH_QUERY_PERFORMANCE_REPORT?

2017-08-08 Thread Zweitze
Thank you!

For the record, I expect a field KeywordStatus. It's just like the id of 
the keyword: in keyword reports it is called Id, but in this report 
KeywordId. So KeywordStatus, representing the current status of the keyword 
to which the search term was matched.



On Monday, August 7, 2017 at 5:03:26 PM UTC+2, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi, 
>
> The Status field in AdWords API reports provide the status of the main 
> object in a row. Since the Search Query Performance Report is aggregated at 
> the search terms level, there isn't a status associated with the search 
> term as such. I'll convey your request to add these features to the team. 
> You can follow the Google Ads Developer Blog 
>  for any 
> updates or announcements. 
>
> Regards,
> 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/8fd3fdd1-63c6-4fd8-ab9f-c5c4b2d7910c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to get FinalUrls of keyword using API

2017-08-08 Thread Sarvagya Pandey
Hi,

I am using PHP Adwords APIs to fetch the final urls of keywords but it 
always returns null

*Code I am using:*

// Get the service, which loads the required classes.
$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);
// Create selector.
$selector = new Selector();
$selector->setFields(['KeywordText', 'KeywordMatchType', 
'Id','Status','TopOfPageCpc','CpcBid','FinalUrls']);
$selector->setOrdering([new OrderBy('KeywordText', 'ASCENDING')]);
// Create predicates.
$selector->setPredicates([new Predicate('AdGroupId', PredicateOperator::IN, 
[$adGroupId]  )] );
$selector->setPredicates([new Predicate('CriteriaType', 
PredicateOperator::IN, ['KEYWORD']  )] );
$selector->setPredicates([new Predicate('Id', PredicateOperator::IN, 
[$keywordId]  )] );

// Make the get request.
$page = $adGroupCriterionService->get($selector);
foreach ($page->getEntries() as $adGroupCriterion) {
   var_dump($adGroupCriterion);
}


*Response :*

Google\AdsApi\AdWords\v201609\cm\BiddableAdGroupCriterion Object
(
[userStatus:protected] => ENABLED
[systemServingStatus:protected] => 
[approvalStatus:protected] => 
[disapprovalReasons:protected] => 
[destinationUrl:protected] => 
[firstPageCpc:protected] => 
[topOfPageCpc:protected] => Google\AdsApi\AdWords\v201609\cm\Bid Object
(
[amount:protected] => Google\AdsApi\AdWords\v201609\cm\Money 
Object
(
[microAmount:protected] => 123456
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

)

[firstPositionCpc:protected] => 
[qualityInfo:protected] => 
[biddingStrategyConfiguration:protected] => 
Google\AdsApi\AdWords\v201609\cm\BiddingStrategyConfiguration Object
(
[biddingStrategyId:protected] => 
[biddingStrategyName:protected] => 
[biddingStrategyType:protected] => MANUAL_CPC
[biddingStrategySource:protected] => 
[biddingScheme:protected] => 
[bids:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201609\cm\CpcBid Object
(
[bid:protected] => 
Google\AdsApi\AdWords\v201609\cm\Money Object
(
[microAmount:protected] => 1234
[ComparableValueType:protected] => 
[ComparableValue.Type] => Money
)

[cpcBidSource:protected] => CRITERION
[BidsType:protected] => 
[Bids.Type] => CpcBid
)

)

)

[bidModifier:protected] => 
[finalUrls:protected] => 
[finalMobileUrls:protected] => 
[finalAppUrls:protected] => 
[trackingUrlTemplate:protected] => 
[urlCustomParameters:protected] => 
[adGroupId:protected] => 12343924932
[criterionUse:protected] => BIDDABLE
[criterion:protected] => Google\AdsApi\AdWords\v201609\cm\Keyword Object
(
[text:protected] => Test Keyword ABCD
[matchType:protected] => PHRASE
[id:protected] => 12343743102
[type:protected] => KEYWORD
[CriterionType:protected] => 
[Criterion.Type] => Keyword
)

[labels:protected] => 
[forwardCompatibilityMap:protected] => 
[baseCampaignId:protected] => 
[baseAdGroupId:protected] => 
[AdGroupCriterionType:protected] => 
[AdGroupCriterion.Type] => BiddableAdGroupCriterion
)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c7e47e70-8bc8-40ed-85fc-3d57fd45af8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


i lost my google adword account how i can get it back?

2017-08-08 Thread maisondesfleursdubai
Dear google adword team,

my google adword account seems like totally deleted its not working any 
more i signin and adword terminal is asking to create a new campaign..

i have my ads and campaigns running on my account now its asking to make a 
new campaign, i checked my account its totally blank nothing is there. i 
paid 6000 aed last month now i dont have anything in my account.

kindly let me know what is the solution and how i can get my account back.

regards,
Adnan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b45096db-f18d-47e1-84e0-f00b665c9a6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER - Java SDK setServiceAccountUser missing?

2017-08-08 Thread 'Peter Oliquino' via AdWords API Forum
Hi John, 

Could you provide the following details? 

   - Do you have a Google Apps Domain? To use service accounts with 
   AdWords, a Google Apps Domain is required (as mentioned on the wiki page 
   for service accounts 
   

   ).
   - Have you been granted access to the G Suite (former Google Apps) 
   account that you have? 

Depending on the library you use, impersonation can be configured 
differently. If you are working with a single user I suggest using installed 
application 
.
 
With installed application flow you need to authorize each Google account 
individually. So, you'd need to have each of these users go through the 
authorization flow and then manage a separate access/refresh token per 
email address. The authorization step (browser step) for installed 
application is needed only once and can be done outside of your production 
environment. All you need is the refresh token which can be cached and 
deployed with your app. Please see this document 

 for 
more information on setting up authentication. 

Best 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/3181e3ed-2243-4851-a6eb-4c22aaec2957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.