Re: data about suspended accounts

2018-08-29 Thread henry
Hi AdWords API Team,

Is it still a fact that we cannot check if an account is "suspended" via 
AdWords API?

Thanks

On Tuesday, November 21, 2017 at 6:25:58 PM UTC+8, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi Ted,
>
> Based on the link you provided, the PolicyTopicEntry 
> 
>  is 
> on ad level and does not return account suspension status. The "suspended 
> account" status cannot be retrieved currently via the AdWords API. You can 
> only see it via the AdWords UI by logging in to your AdWords manager 
> account, and you can see alerts about suspended accounts. And if you select 
> a suspended account, you can see the reason for suspension on a red banner 
> in the home page.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
__Please consider the environment before printing this email or attachment_

_
_
_
This email and any attachments are confidential and may also be 
privileged. If you are not the addressee, do not disclose, copy, circulate 
or in any other way use or rely on the information contained in this email 
or any attachments. If received in error, notify the sender immediately and 
delete this email and any attachments from your system. Emails cannot be 
guaranteed to be secure or error free as the message and any attachments 
could be intercepted, corrupted, lost, delayed, incomplete or amended. 
Master Concept Group and its subsidiaries do not accept liability for 
damage caused by this email or any attachments and may monitor email 
traffic.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7d4c8ad1-7852-4174-8939-a75562784609%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to access a campaigns targetCPA

2018-08-29 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

Your issue appears to be more related to the Python client library. Also, 
we currently have no sample codes or documentation that demonstrates how 
the field is retrieved using Python. You may try and contact the library 
owners via this link 
 for further 
assistance.

Thanks and regards,
Peter
AdWords API Team

On Wednesday, August 29, 2018 at 6:29:34 PM UTC+8, shean wrote:
>
> Hi,
>
> i have the same issue
>
> after use the code, i always get instance no attribute '
> getBiddingStrategyConfiguration'
>
> i use python
>
> more_pages = True
> while more_pages:
> page = service.get(selector)
>
>
> # Display results
> if 'entries' in page:
> for campaign in page['entries']:
>
> print('Campaign with id "%s", name "%s", and status "%s" was '
>   'found, url "%s".' % (campaign['id'], campaign['name'], 
> campaign['status']))
>
> if campaign.getBiddingStrategyConfiguration():
> print('in')
> else:
> print ('No campaigns were found')
> offset += PAGE_SIZE
> selector['paging']['startIndex'] = str(offset)
> more_pages = offset < int(page['totalNumEntries'])
>
>
> response
> Campaign instance has no attribute 'getBiddingStrategyConfiguration'
>
>
> thanks
>
> Peter Oliquino (AdWords API Team)於 2018年8月13日星期一 UTC+8下午3時07分41秒寫道:
>>
>> Hi,
>>
>> My apologies for the mistake. In your Selector, you need to include the "
>> *BiddingStrategyType*" and "*TargetCpa*" campaign fields. When 
>> processing the results, you may then provide a condition to filter only 
>> those bidding strategies that are of type TARGET_CPA, if you have 
>> strategies aside from the one I mentioned.
>>
>> Using Java, I was able to extract the information by using the code 
>> snippet below :
>>
>> if 
>> (campaign.getBiddingStrategyConfiguration().getBiddingStrategyType().toString().equals("TARGET_CPA"))
>>  
>> {
>>
>> BiddingScheme biddingScheme = 
>> campaign.getBiddingStrategyConfiguration().getBiddingScheme();
>> TargetCpaBiddingScheme targetCPAScheme = 
>> (TargetCpaBiddingScheme) biddingScheme;
>> String targetCpaValue = 
>> targetCPAScheme.getTargetCpa().toString();
>> 
>> System.out.printf("Campaign with name '%s' and ID %d and 
>> targetCpa '%s' was found.%n", campaign.getName(),
>> campaign.getId(), targetCpaValue);
>> 
>>   }
>>
>>
>> Let me know if this helps.
>>
>> Thanks and regards,
>> Peter
>> AdWords API Team
>>
>>
>> On Friday, August 10, 2018 at 5:58:32 PM UTC+8, 华阳 wrote:
>>>
>>> Get an exception when trying to add "" as select field.
>>>
>>> AdWordsApiException: Exception of type 
>>> 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
>>> The field name is not valid.. (Error: SelectorError.INVALID_FIELD_NAME, 
>>> FieldPath: serviceSelector, Trigger: biddingStrategyConfiguration)
>>>
>>>
>>> Selector selector = new Selector()
>>> {
>>> fields = new[] { 
>>> "biddingStrategyConfiguration" },
>>> predicates = new Predicate[] 
>>> { Predicate.Equals(Campaign.FilterableFields.Status, "ENABLED"), },
>>> paging = Paging.Default
>>> };
>>>
>>> 在 2018年8月8日星期三 UTC-7下午11:39:23,Peter Oliquino (AdWords API Team)写道:
>>>
 Hi,

 Using the CampaignService.get(), you will need to include the 
 BiddingStrategyConfiguration 
 
  in 
 your selected fields then once retrieved through the Campaign object, 
 create an object of its type. You can then extract its BiddingScheme 
 
  that 
 would then allow you to identify whether it is a TargetCpaBiddingScheme 
 
  and 
 then get its TargetCpa 
 
  value.

 Thanks and regards,
 Peter
 AdWords API Team

 On Thursday, August 9, 2018 at 12:55:27 PM UTC+8, CR EG wrote:
>
> Hey all!
>
> I am having some difficulty trying to pull the targetCPA for a 
> specific campaign. Here is what I have, I am using the selector to pull 
> the 
> campaign that I need but when I look at the attributes returned it does 
> not 
> provide the bidding strategy details. 
>
> campaign_service = client.GetService('CampaignService', 
> version='v201802')

Re: How do I get a general report on all companies by gender?

2018-08-29 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

Could you confirm if you wish to download reports across all your client 
accounts at once? If this is what you are pertaining to, you may refer to 
this link 

 to 
know more about parallel reporting and its sample codes. Do take note that 
you need to run this using your MCC account. You may then specify the Gender 
Performance Report 

 in 
the code to download gender-based information.

If this is not what you are pertaining to, could you provide more context 
on what you meant by "get a report on all companies by gender"?

Regards,
Dannison
AdWords API Team

On Thursday, August 30, 2018 at 3:27:57 AM UTC+8, Сty Вord wrote:
>
> *Hello*
> *I do not understand how to get a report on all companies by 
> gender?(together) (on Python)*
> *I read:*
>
> *Single and multiple attribution*
> *https://developers.google.com/adwords/api/docs/guides/reporting#multiple_attribution
>  
> *
>
> *Gender Performance Report*
> *https://developers.google.com/adwords/api/docs/appendix/reports/gender-performance-report
>  
> *
>
> *Example of Python*
> *https://developers.google.com/adwords/api/docs/samples/python/reporting 
> *
>
> * My code on Python:*
> *report = {*
> *'reportName': 'Custom Date GENDER_PERFORMANCE_REPORT',*
> *'dateRangeType': 'ALL_TIME',*
> *'reportType': 'GENDER_PERFORMANCE_REPORT',*
> *'downloadFormat': 'CSV',*
> *'selector': {*
> *'fields': ['Criteria', 'Clicks','Impressions', 'Ctr', 
> 'Cost'],*
> *}*
> *}*
> *report_data = report_downloader.DownloadReportAsString(report, 
> skip_report_header=True,*
> *  
>  skip_column_header=False,*
> *  
>  skip_report_summary=False,*
> *  
>  include_zero_impressions=True)*
>
> *Thank you!*
>
>

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/8b54117b-21da-482b-9d60-0b00e45e0207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CampaignBidModifierOperation not in _OPERATION_MAP

2018-08-29 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Wilfried,

If you successfully downloaded and installed the Python client library, you 
should be able to see the operation as it is possible to adjust bid through 
the API. This being said, the possible issue here is specific to the Python 
client library rather than the AdWords API. I would suggest to post your 
issue here  as 
the client library owners are better equipped to assist you.

Thanks and regards,
Luis
AdWords API Team

On Thursday, August 30, 2018 at 5:23:05 AM UTC+8, wtemmerman wrote:
>
> Hi,
>
> I tried to create a call bid adjustment with the API. So after reading the 
> Adwords API and analyze data return by Adwords API.
> The problem is : 
>
> I create my add operation but the CampaignBidModifierService 
> 
>  doesn't 
> have his CampaignBidModifierOperation present in _OPERATION_MAP (line 641) 
> of googleads/adwords.py 
> 
> . 
>
> So that raise a KeyError.
>
>
> Stack error : 
>
>> ~/projects/tool/lib/python3.5/site-packages/googleads/adwords.py in 
>> _GenerateRawRequestXML(self, operations)
>
> 891 KeyError: If the given operation type is not supported.
>
> 892   """
>
> --> 893   operation = self._OPERATION_MAP[operations[0]['xsi_type']]
>
> 894   service = self.client.GetService(operation.service, 
>> self._version)
>
> 895   return service.GetRequestXML(operation.method, operations)
>
>
>> KeyError: 'CampaignBidModifierOperation'
>
>
> Do you have an idea why this operation is not present in _OPERATION_MAP ?
> And is it possible to create a call bid adjustement with API ? (it's 
> possible by Google Ads website)
>
> Regards,
>
> Wilfried
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3a5001b7-aacc-41ab-a1b2-76a04c6565b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Audience

2018-08-29 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

You can try and use the CampaignCriterionService.get() 

 to 
retrieve the list of CriterionUserList 

 objects 
you are targeting in your campaign. Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team

On Thursday, August 30, 2018 at 3:27:50 AM UTC+8, Ramanajee Kandregula 
wrote:
>
> Hi,
> Is there anyway to get campaign audience through API call ?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b33300f7-4a64-4330-a41f-4fecce0e5cdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: adwords api session limitations

2018-08-29 Thread karthick r
Hello Teja, 

Thanks for answering my questions. 






On Wednesday, August 29, 2018 at 2:06:01 AM UTC-7, karthick r wrote:
>
> Hello all,
> We have a batch job which calls the Google Adwords APIs to generate 
> reports on a monthly basis. 
> We use the adwords-lib and adwords-axis dependencies to connect to the 
> Adwords APIs.
> And we create the session this way 
>
> adwordsCredential = new OfflineCredentials.Builder().
>
>  
>
>  forApi(OfflineCredentials.Api.ADWORDS) 
>
>  .withRefreshToken(refreshToken) 
>
>  .withClientSecrets(clientId, clientSecret) 
>
>  .build(). 
>
>  generateCredential(); 
>
>  
>
>  adWordsSession = new AdWordsSession.Builder() 
>
>  .withClientCustomerId(clientCustomerId) 
>
>  .withDeveloperToken(developerToken) 
>
>  .withOAuth2Credential(adwordsCredential). 
>
>  build();
>
>
> I am trying to find out the best practices to manage the sessions. 
>
>
>
> - What happens to the sessions we create ? Do they expire ?
>
> - Is there a limit on the number of active sessions ?
>
>
> Thanks!
>
> K 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/559e7c69-a317-4c33-a64a-8b253961f28f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Import googleads hangs in python script

2018-08-29 Thread ostkmktspendapi via AdWords API and Google Ads API Forum
We have 14.0.0 installed; I tried to create and execute the sample 
get_campaigns.py script but unfortunately it also hangs on import from 
googleads.

On Wednesday, August 29, 2018 at 1:48:53 PM UTC-6, Teja Makani wrote:
>
> Hello,
>
> Could you please try to install the latest version of python client 
> library ? 
> please refer this README.md 
> 
>  file 
> while installing and run get_campaigns.py 
> 
>  sample 
> program. If the issue persists please share the error logs/ screenshots. 
> You could use reply privately to author option while sharing.
>
> Regards,
> Sai Teja, AdWords API Team.
>
> On Wednesday, August 29, 2018 at 5:05:50 AM UTC-4, 
> ostkmkt...@overstock.com wrote:
>>
>> I have a python script that makes the following call:
>>
>>from googleads import adwords
>>
>> When I run the script, it hangs on this step.  I've validated with print 
>> statements that this is the case.  I've run it in verbose mode and it hangs 
>> at the same point every time.
>>
>> I can go into python in interactive mode, and import the library 
>> successfully, most of the time.  Every once in awhile this hangs as well.
>>
>> Any help or troubleshooting tips would be appreciated.  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.
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/6db46cf1-3b6a-4df5-b49f-31fa2dfed517%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CampaignBidModifierOperation not in _OPERATION_MAP

2018-08-29 Thread wtemmerman
Hi,

I tried to create a call bid adjustment with the API. So after reading the 
Adwords API and analyze data return by Adwords API.
The problem is : 

I create my add operation but the CampaignBidModifierService 

 doesn't 
have his CampaignBidModifierOperation present in _OPERATION_MAP (line 641) 
of googleads/adwords.py 

. 

So that raise a KeyError.


Stack error : 

> ~/projects/tool/lib/python3.5/site-packages/googleads/adwords.py in 
> _GenerateRawRequestXML(self, operations)

891 KeyError: If the given operation type is not supported.

892   """

--> 893   operation = self._OPERATION_MAP[operations[0]['xsi_type']]

894   service = self.client.GetService(operation.service, 
> self._version)

895   return service.GetRequestXML(operation.method, operations)


> KeyError: 'CampaignBidModifierOperation'


Do you have an idea why this operation is not present in _OPERATION_MAP ?
And is it possible to create a call bid adjustement with API ? (it's 
possible by Google Ads website)

Regards,

Wilfried

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/733eb16f-183e-46e6-ba52-61be13d6891e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Ads Beta API - Display/Video Campaigns not showing up in query

2018-08-29 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello James,

Yes, Google Ads API Beta v0.3.0 
 now 
supports display campaigns as well. I ran the exact query you mentioned and 
able to see search, display campaigns as well. Currently, video campaigns 
are not available via API. We don't have any expected time of availability 
as of now. You could keep an eye on our blog 
 for 
future release. 

Regards,
Sai Teja, AdWords API Team.

On Wednesday, August 29, 2018 at 11:39:02 AM UTC-4, James Robinett wrote:
>
> Hi there, 
>
> I'm trying out the new Google Ads Beta API, running a very simple query to 
> grab a list of Campaigns:
>
> SELECT 
> campaign.id, 
> campaign.name
> FROM campaign
> WHERE campaign.status IN ("ENABLED", "PAUSED")
> ORDER BY campaign.id
>
> The result has all the expected Search campaigns for the requested 
> account, but doesn't include any Campaigns with Type = Display or Video.
>
> I've tried adding ad_network_type as a segment as well, but it still shows 
> the same list of Search Campaigns only. Also tried explicitly searching 
> WHERE campaign.name = "Display Campaign Name" but got no results.
>
> Am I missing something or is querying Display/Video campaigns not 
> supported yet?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7e2a44c9-f284-4d52-a280-eced1c98bb37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Ads Beta API - Display/Video Campaigns not showing up in query

2018-08-29 Thread James Robinett
Wow good timing! The just today released v0.3.0 supports Display Campaigns: 
https://developers.google.com/google-ads/api/docs/release-notes

I suppose Video is similarly waiting on support in a future version in that 
case then? 

On Wednesday, August 29, 2018 at 8:39:02 AM UTC-7, James Robinett wrote:
>
> Hi there, 
>
> I'm trying out the new Google Ads Beta API, running a very simple query to 
> grab a list of Campaigns:
>
> SELECT 
> campaign.id, 
> campaign.name
> FROM campaign
> WHERE campaign.status IN ("ENABLED", "PAUSED")
> ORDER BY campaign.id
>
> The result has all the expected Search campaigns for the requested 
> account, but doesn't include any Campaigns with Type = Display or Video.
>
> I've tried adding ad_network_type as a segment as well, but it still shows 
> the same list of Search Campaigns only. Also tried explicitly searching 
> WHERE campaign.name = "Display Campaign Name" but got no results.
>
> Am I missing something or is querying Display/Video campaigns not 
> supported yet?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/05b88d39-023d-4fd5-85b4-0f48eab962b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Ads Beta API - Display/Video Campaigns not showing up in query

2018-08-29 Thread James Robinett
Haha good timing I suppose! V0.0.3 support Display Campaigns 
now: https://developers.google.com/google-ads/api/docs/release-notes

I suppose Video is similarly waiting on support in a future version in that 
case then.

On Wednesday, August 29, 2018 at 8:39:02 AM UTC-7, James Robinett wrote:
>
> Hi there, 
>
> I'm trying out the new Google Ads Beta API, running a very simple query to 
> grab a list of Campaigns:
>
> SELECT 
> campaign.id, 
> campaign.name
> FROM campaign
> WHERE campaign.status IN ("ENABLED", "PAUSED")
> ORDER BY campaign.id
>
> The result has all the expected Search campaigns for the requested 
> account, but doesn't include any Campaigns with Type = Display or Video.
>
> I've tried adding ad_network_type as a segment as well, but it still shows 
> the same list of Search Campaigns only. Also tried explicitly searching 
> WHERE campaign.name = "Display Campaign Name" but got no results.
>
> Am I missing something or is querying Display/Video campaigns not 
> supported yet?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0e5aa2ce-5a85-4af2-af39-6a200c006d44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: adwords api session limitations

2018-08-29 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Karthick,

Please find my responses inline:

- What happens to the sessions we create ? Do they expire ? 
Yes, the sessions expire when the access token expires. This depends on the 
value set in expires_in  . 
Please refer this section 

 of 
guide for better clarity.

- Is there a limit on the number of active sessions ? 
As you are using offline access, the client object 

 is 
refreshing the access token as needed to keep the session alive. However, 
there is a limit of 50 refresh tokens per user account per client which 
will decide the limit on number of active sessions. Please refer this 
section  of 
Auth2.0 guide for better clarity.

Regards,
Sai Teja, AdWords API Team.

On Wednesday, August 29, 2018 at 5:06:01 AM UTC-4, karthick r wrote:
>
> Hello all,
> We have a batch job which calls the Google Adwords APIs to generate 
> reports on a monthly basis. 
> We use the adwords-lib and adwords-axis dependencies to connect to the 
> Adwords APIs.
> And we create the session this way 
>
> adwordsCredential = new OfflineCredentials.Builder().
>
>  
>
>  forApi(OfflineCredentials.Api.ADWORDS) 
>
>  .withRefreshToken(refreshToken) 
>
>  .withClientSecrets(clientId, clientSecret) 
>
>  .build(). 
>
>  generateCredential(); 
>
>  
>
>  adWordsSession = new AdWordsSession.Builder() 
>
>  .withClientCustomerId(clientCustomerId) 
>
>  .withDeveloperToken(developerToken) 
>
>  .withOAuth2Credential(adwordsCredential). 
>
>  build();
>
>
> I am trying to find out the best practices to manage the sessions. 
>
>
>
> - What happens to the sessions we create ? Do they expire ?
>
> - Is there a limit on the number of active sessions ?
>
>
> Thanks!
>
> K 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/82355a4d-7344-4050-834d-c35586d1046d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Import googleads hangs in python script

2018-08-29 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello,

Could you please try to install the latest version of python client library 
? please refer 
this README.md 

 file 
while installing and run get_campaigns.py 

 sample 
program. If the issue persists please share the error logs/ screenshots. 
You could use reply privately to author option while sharing.

Regards,
Sai Teja, AdWords API Team.

On Wednesday, August 29, 2018 at 5:05:50 AM UTC-4, ostkmkt...@overstock.com 
wrote:
>
> I have a python script that makes the following call:
>
>from googleads import adwords
>
> When I run the script, it hangs on this step.  I've validated with print 
> statements that this is the case.  I've run it in verbose mode and it hangs 
> at the same point every time.
>
> I can go into python in interactive mode, and import the library 
> successfully, most of the time.  Every once in awhile this hangs as well.
>
> Any help or troubleshooting tips would be appreciated.  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.
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/b99a2d03-d42e-4aa0-8d4f-b9a6a7ef8e01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I get a general report on all companies by gender?

2018-08-29 Thread Сty Вord
*Hello*
*I do not understand how to get a report on all companies by 
gender?(together) (on Python)*
*I read:*

*Single and multiple attribution*
*https://developers.google.com/adwords/api/docs/guides/reporting#multiple_attribution*

*Gender Performance Report*
*https://developers.google.com/adwords/api/docs/appendix/reports/gender-performance-report*

*Example of Python*
*https://developers.google.com/adwords/api/docs/samples/python/reporting*

* My code on Python:*
*report = {*
*'reportName': 'Custom Date GENDER_PERFORMANCE_REPORT',*
*'dateRangeType': 'ALL_TIME',*
*'reportType': 'GENDER_PERFORMANCE_REPORT',*
*'downloadFormat': 'CSV',*
*'selector': {*
*'fields': ['Criteria', 'Clicks','Impressions', 'Ctr', 'Cost'],*
*}*
*}*
*report_data = report_downloader.DownloadReportAsString(report, 
skip_report_header=True,*
*  
 skip_column_header=False,*
*  
 skip_report_summary=False,*
*  
 include_zero_impressions=True)*

*Thank you!*

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/86fad0fa-4c7a-45ae-862e-07643cb7ad41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign Audience

2018-08-29 Thread Ramanajee Kandregula
Hi,
Is there anyway to get campaign audience through API call ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cc9d93f4-912f-49f2-a374-135613eb546b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I get a general report on all companies by gender?

2018-08-29 Thread Сty Вord
Hello
I do not understand how to get a report on all companies by 
gender?(together) (on Python)
I read:

Single and multiple attribution
https://developers.google.com/adwords/api/docs/guides/reporting#multiple_attribution

Gender Performance Report
https://developers.google.com/adwords/api/docs/appendix/reports/gender-performance-report

Example of Python
https://developers.google.com/adwords/api/docs/samples/python/reporting

 My code on Python:
report = {
'reportName': ''ALL TIME GENDER_PERFORMANCE_REPORT',
'dateRangeType': 'ALL_TIME',
'reportType': 'GENDER_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['Criteria', 'Clicks','Impressions', 'Ctr', 'Cost'],
}
}
report_data = report_downloader.DownloadReportAsString(report, 
skip_report_header=True,
  
 skip_column_header=False,
  
 skip_report_summary=False,
  
 include_zero_impressions=True)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ed01e840-7511-4371-9d73-d44bfe3e6d6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get client ids by AdwordsUser and unable to get AdwordsReport

2018-08-29 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello Joab, 

Thank you for sharing the details privately. Please find my response below 
for the three set of logs shared:

1. For the logs specific to ManagedCustomerService, it looks like the 
account is not completely setup. Can you please setup the account 
completely and retry the API request again? 

2. The CUSTOMER_NOT_FOUND 

 error 
is triggered when the account specified in the request header is not found. 
It looks like the CID specified is invalid. Can you make sure that you're 
using a valid CID and retry the request?

3. Based on the logs shared for the report, it looks like some of the 
characters are escaped. Could you try using this line: __rdxml: ** in the body of your HTTP POST request 
and retry the request?

Let me know if you run into any issues. 

Thanks,
Bharani, AdWords API Team

On Tuesday, August 28, 2018 at 6:00:51 AM UTC-4, Adwords Trapica wrote:
>
> Hi,
>
> I'm new to Google Adwords API and I would appreciate your help.
>
> Since, for now, my clients on boarding manually by link their accounts to 
> mine I don't have the option to get their refresh token but I have mine and 
> I hope it's enough.
> When I do the signup process by using URL: 
> https://accounts.google.com/o/oauth2/v2/auth I do get my refresh token, 
> but when I try to get my clients ids by using AdwordsUser I get zero 
> results: {\"totalNumEntries\":0,\"Page.Type\":\"ManagedCustomerPage\"}.
> Here's my code (Using node-adwords sdk):
>
> let adwordsUser = new AdwordsUser({
> developerToken : token,
> userAgent : agent,
> clientCustomerId : clientCustomerId,// xxx-xxx-x format
> client_id : clientId, // 
> xx.apps.googleusercontent.com
> client_secret : secret,
> refresh_token : refreshToken
> })
>
>
> let managedCustomerService = 
> adwordsUser.getService('ManagedCustomerService', 'v201806')
> let managedCustomerSelector = {
> fields: ['Name', 'CustomerId'],
> ordering: [{field: 'CustomerId', sortOrder: 'ASCENDING'}],
> paging: {startIndex: 0, numberResults: 
> AdwordsConstants.RECOMMENDED_PAGE_SIZE}
> }
>
> managedCustomerService.get({serviceSelector: managedCustomerSelector}, 
> (error, results) => {...
>
> Any idea why I can't see the client ids of my customer?
>
>
>
> Yet, I can see my customer's client ids in my web console and I'm trying 
> to get insights about their campaigns.
> Here's my code (Using node-adwords sdk):
>
> let report = new AdwordsReport({
> developerToken: developerToken,
> userAgent: agent,
> clientCustomerId: clientCustomerId,// Tried to use my customer's 
> client id and tried to use mine
> client_id: clientId,
> client_secret: secret,
> refresh_token: refreshToken
> })
>
> report.getReport('v201806', {
> reportName: `${clientCustomerId} report for ${duration}`,
> reportType: 'CAMPAIGN_PERFORMANCE_REPORT',
> query: query,
> additionalHeaders: {
> skipReportHeader: true,
> skipReportSummary: true,
> skipColumnHeader: true
> },
> format: 'CSV'
> }...
>
>
> but I get: eportDownloadError.INVALID_PARAMETER ... Missing client 
> information
> Please advise.
>
> Thanks,
> Joab
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2e48e03-893a-41f6-b490-832ecf5b9d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError.SERVICE_ACCESS_DENIED

2018-08-29 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

The MCC ID associated with the token seems to be approved for AdWords App 
Conversions and Remarketing API. This developer token does not have 
permissions to make API calls against the AdWords API, so your request 
might failing with SERVICE_ACCESS_DENIED. You can contact API Compliance 
team to check if it is possible to reuse the same token for AdWords API by 
submitting this form . 

Thanks,
Milind, 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/c61d6038-4e72-433b-b6c8-23f49d4d546e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Ads Beta API - Display/Video Campaigns not showing up in query

2018-08-29 Thread James Robinett
Hi there, 

I'm trying out the new Google Ads Beta API, running a very simple query to 
grab a list of Campaigns:

SELECT 
campaign.id, 
campaign.name
FROM campaign
WHERE campaign.status IN ("ENABLED", "PAUSED")
ORDER BY campaign.id

The result has all the expected Search campaigns for the requested account, 
but doesn't include any Campaigns with Type = Display or Video.

I've tried adding ad_network_type as a segment as well, but it still shows 
the same list of Search Campaigns only. Also tried explicitly searching 
WHERE campaign.name = "Display Campaign Name" but got no results.

Am I missing something or is querying Display/Video campaigns not supported 
yet?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0f5575ed-12e5-4330-8e86-019f19c76c23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to access a campaigns targetCPA

2018-08-29 Thread shean
Hi,

i have the same issue

after use the code, i always get instance no attribute '
getBiddingStrategyConfiguration'

i use python

more_pages = True
while more_pages:
page = service.get(selector)


# Display results
if 'entries' in page:
for campaign in page['entries']:

print('Campaign with id "%s", name "%s", and status "%s" was '
  'found, url "%s".' % (campaign['id'], campaign['name'], 
campaign['status']))

if campaign.getBiddingStrategyConfiguration():
print('in')
else:
print ('No campaigns were found')
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])


response
Campaign instance has no attribute 'getBiddingStrategyConfiguration'


thanks

Peter Oliquino (AdWords API Team)於 2018年8月13日星期一 UTC+8下午3時07分41秒寫道:
>
> Hi,
>
> My apologies for the mistake. In your Selector, you need to include the "
> *BiddingStrategyType*" and "*TargetCpa*" campaign fields. When processing 
> the results, you may then provide a condition to filter only those bidding 
> strategies that are of type TARGET_CPA, if you have strategies aside from 
> the one I mentioned.
>
> Using Java, I was able to extract the information by using the code 
> snippet below :
>
> if 
> (campaign.getBiddingStrategyConfiguration().getBiddingStrategyType().toString().equals("TARGET_CPA"))
>  
> {
>
> BiddingScheme biddingScheme = 
> campaign.getBiddingStrategyConfiguration().getBiddingScheme();
> TargetCpaBiddingScheme targetCPAScheme = 
> (TargetCpaBiddingScheme) biddingScheme;
> String targetCpaValue = 
> targetCPAScheme.getTargetCpa().toString();
> 
> System.out.printf("Campaign with name '%s' and ID %d and 
> targetCpa '%s' was found.%n", campaign.getName(),
> campaign.getId(), targetCpaValue);
> 
>   }
>
>
> Let me know if this helps.
>
> Thanks and regards,
> Peter
> AdWords API Team
>
>
> On Friday, August 10, 2018 at 5:58:32 PM UTC+8, 华阳 wrote:
>>
>> Get an exception when trying to add "" as select field.
>>
>> AdWordsApiException: Exception of type 
>> 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
>> The field name is not valid.. (Error: SelectorError.INVALID_FIELD_NAME, 
>> FieldPath: serviceSelector, Trigger: biddingStrategyConfiguration)
>>
>>
>> Selector selector = new Selector()
>> {
>> fields = new[] { 
>> "biddingStrategyConfiguration" },
>> predicates = new Predicate[] 
>> { Predicate.Equals(Campaign.FilterableFields.Status, "ENABLED"), },
>> paging = Paging.Default
>> };
>>
>> 在 2018年8月8日星期三 UTC-7下午11:39:23,Peter Oliquino (AdWords API Team)写道:
>>
>>> Hi,
>>>
>>> Using the CampaignService.get(), you will need to include the 
>>> BiddingStrategyConfiguration 
>>> 
>>>  in 
>>> your selected fields then once retrieved through the Campaign object, 
>>> create an object of its type. You can then extract its BiddingScheme 
>>> 
>>>  that 
>>> would then allow you to identify whether it is a TargetCpaBiddingScheme 
>>> 
>>>  and 
>>> then get its TargetCpa 
>>> 
>>>  value.
>>>
>>> Thanks and regards,
>>> Peter
>>> AdWords API Team
>>>
>>> On Thursday, August 9, 2018 at 12:55:27 PM UTC+8, CR EG wrote:

 Hey all!

 I am having some difficulty trying to pull the targetCPA for a specific 
 campaign. Here is what I have, I am using the selector to pull the 
 campaign 
 that I need but when I look at the attributes returned it does not provide 
 the bidding strategy details. 

 campaign_service = client.GetService('CampaignService', 
 version='v201802')

 selector = {
 'fields': ['Name'],
 'predicates': {
 'field': 'Id',
 'operator': 'EQUALS',
 'values': campaignID
 }
 }

 campaign = campaign_service.get(selector)



 Here is What is returned

 {
 'totalNumEntries': 1,
 'Page.Type': 'CampaignPage',
 'entries': [
 {
 'id': *,
 'campaignGroupId': None,
 'name': '***',
 'status': None,
  

Import googleads hangs in python script

2018-08-29 Thread ostkmktspendapi via AdWords API and Google Ads API Forum
I have a python script that makes the following call:

   from googleads import adwords

When I run the script, it hangs on this step.  I've validated with print 
statements that this is the case.  I've run it in verbose mode and it hangs 
at the same point every time.

I can go into python in interactive mode, and import the library 
successfully, most of the time.  Every once in awhile this hangs as well.

Any help or troubleshooting tips would be appreciated.  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.
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/c782958f-9204-40f4-8239-a5bd3506dc28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


adwords api session limitations

2018-08-29 Thread karthick r
Hello all,
We have a batch job which calls the Google Adwords APIs to generate reports 
on a monthly basis. 
We use the adwords-lib and adwords-axis dependencies to connect to the 
Adwords APIs.
And we create the session this way 

adwordsCredential = new OfflineCredentials.Builder().

 

 forApi(OfflineCredentials.Api.ADWORDS) 

 .withRefreshToken(refreshToken) 

 .withClientSecrets(clientId, clientSecret) 

 .build(). 

 generateCredential(); 

 

 adWordsSession = new AdWordsSession.Builder() 

 .withClientCustomerId(clientCustomerId) 

 .withDeveloperToken(developerToken) 

 .withOAuth2Credential(adwordsCredential). 

 build();


I am trying to find out the best practices to manage the sessions. 



- What happens to the sessions we create ? Do they expire ?

- Is there a limit on the number of active sessions ?


Thanks!

K 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e65da8f7-a4b3-4ff8-ad20-2ccfacc70655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


adwords api session limitation

2018-08-29 Thread karthick r
Hello all,
We have a batch job that calls the Adwords APIs (TargetingIdeaService) to 
generate reports on a monthly basis. 
We use the adwords-lib and adwords-axis dependencies to connect to the 
Google Adwords API. And we create the AdwordsSession this way

adwordsCredential = new OfflineCredentials.Builder().
forApi(OfflineCredentials.Api.ADWORDS) 
.withRefreshToken(refreshToken) 
.withClientSecrets(clientId, clientSecret) 
.build().generateCredential(); 

 
adWordsSession = new AdWordsSession.Builder() .withClientCustomerId(
clientCustomerId) 
.withDeveloperToken(developerToken) 
.withOAuth2Credential(adwordsCredential). 
 build();


I have the following questions:

- What happens to the session that we create? 

- Do sessions expire? 

- Is there a limit on the number of active sessions ? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/76991790-47a5-4f20-a762-440dd3cd451d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do i add a single product id to a shopping campaign in JAVA

2018-08-29 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Thomas,

You can review our shopping campaigns 
 guide on 
how you can configure your accounts and create shopping campaigns with 
their corresponding bids and product partitions and set its product 
dimensions 

 (ProductOfferId 

).

As for excluding all existing products, I'm afraid that there is no direct 
way to achieve this. Using the AdGroupCriterionService.mutate() 

 method, 
you will have to REMOVE it and ADD it again, however this time, you will 
need to ADD it as a NegativeAdGroupCriterion 

.

Best regards,
Peter
AdWords API Team

On Wednesday, August 29, 2018 at 11:44:04 AM UTC+8, Thomas Bisballe wrote:
>
> How do i add a single product id from merchant center into a new Adgroup 
> in a new shopping campaign in JAVA
> with a cpc bid of 2 euros 
> and make it exclude everything else in "all products"
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1fe0f2a5-491f-4d99-a39e-b65e417920f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fix/Troublshooting PolicyViolationError during BatchUpload

2018-08-29 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

To get more information about your error, I suggest you enable logging in 
your client library by following this guide 
.
 
After enabling logging, you could rerun the service and investigate the 
logs generated. Also, could you provide the complete SOAP request and 
response logs I could investigate further on my end? You may reply via *Reply 
privately to author*.

According to this guide 
, 
the batch jobs automatically sets the partialFailure tag to TRUE. This 
means that when an operation fails it returns the error at the end without 
disrupting the other operations.

Regards,
Dannison
AdWords API Team

On Wednesday, August 29, 2018 at 11:44:04 AM UTC+8, 
adwords-t...@fortnine.ca wrote:
>
> Hello,
>
> I'm batch uploading 1000s of ads. I'm running into a policy error:
>
> Operation 221 - FAILURE:
> errorType=PolicyViolationError
> trigger=None
> errorString=AdPolicyError.POLICY_ERROR
> fieldPath=operations[221].operand.ad.headlinePart1
> Traceback (most recent call last):
>   File "create-text-ads.py", line 75, in 
> campaign_batch_upload.PrintResponse(batch_job_helper, response)
>   File "/Users//Projects/adwords-management/campaign_batch_upload.py", 
> line 302, in PrintResponse
> print ('\treason=%s' % data['errorList']['errors']['reason'])
> KeyError: 'reason'
>
>
> I have two questions:
>
> 1) How can I get more information on this error (ex: what headline text is 
> causing it)?
> 2) Can I make the batch process skip the failed opperation? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ec63edbb-71b8-4e5f-b014-3a3a084339e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Account labels in API are not correct

2018-08-29 Thread Oliver
Thanks Dorian.  That explains exactly what is happening.  We're seeing 
different labels dependent on which MCC ID we use to retrieve the data.  
It's very confusing though why this was designed to work like this!

Oliver

On Wednesday, 29 August 2018 08:16:33 UTC+1, Dorian Kind wrote:
>
> Hi,
>
> something to be aware of is that account labels are associated with a 
> specific client manager account. The same account will appear to have 
> different labels depending on which MCC account ID you provide for the call 
> to the ManagedCustomerService.
> Just in case that might be the cause of the observed behavior.
>
> Cheers,
> Dorian
>
> On Tuesday, 28 August 2018 09:25:35 UTC+2, Oliver wrote:
>>
>> We use *ManagedCustomer.accountLabels* to retireve the account lables 
>> for all accounts in a hierarchy of an MCC together with all its sub MCCs.
>>
>> The account labels returned for the sub MCCs do not match the labels 
>> those accounts actually have.  This issue seems to happen only for the sub 
>> MCCs.
>>
>> Any ideas what the reason could be?
>>
>> Oliver
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/04338136-5674-40f2-837f-392716a09924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Account labels in API are not correct

2018-08-29 Thread Dorian Kind
Hi,

something to be aware of is that account labels are associated with a 
specific client manager account. The same account will appear to have 
different labels depending on which MCC account ID you provide for the call 
to the ManagedCustomerService.
Just in case that might be the cause of the observed behavior.

Cheers,
Dorian

On Tuesday, 28 August 2018 09:25:35 UTC+2, Oliver wrote:
>
> We use *ManagedCustomer.accountLabels* to retireve the account lables for 
> all accounts in a hierarchy of an MCC together with all its sub MCCs.
>
> The account labels returned for the sub MCCs do not match the labels those 
> accounts actually have.  This issue seems to happen only for the sub MCCs.
>
> Any ideas what the reason could be?
>
> Oliver
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/13e763c6-c66a-4188-a1ee-d0ae62c93c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.