Re: About obtaining the cost amount for the account on the management screen

2020-03-24 Thread 矢崎慎悟
Dear, Google Ads API Team

Thanks for the reply.
Just in case, I will confirm the recognition because the image is pasted.

The attached image is a page displayed in Japanese, but the part displayed 
at the top with the following URL is cut out.
https://ads.google.com/aw/billing/summary

Is the method of obtaining the amount enclosed in the red frame of this 
image the same as the answer to the first question? Or is there a way to 
get it via API?

Regards,
Shingo Yazaki



2020年3月20日金曜日 3時53分44秒 UTC+9 adsapiforumadvisor:
>
> Hi Shingo,
>
> Thank you for reaching out. You could use the BudgetOrderService.get() 
> 
>  
> to retrieve the BudgetOrder for the account. Please let us know if you have 
> any further concerns.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5001UXVP8x:ref
>

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/14f8e8e1-cfde-42ff-8091-a3876962910b%40googlegroups.com.


Upload Audience list using API didn't trigger populating in UI and get no matching rate.

2020-03-24 Thread Hieu Duongminh


[image: Screen Shot 2020-03-25 at 9.05.38 AM.png]
HI guys, 

I have a problem that the UI didn't show the new Audience list is 
populating after uploading by Adwords API. 
Here is the step: 
- Create a new Audience list using API
- Upload all the records in one request ( around 100.000) 
- Check in UI, Audience manager, the new Audience list created but didn't 
populate ( no populating orange label  below the list in UI) 

If I try to split the data into 2 requests when uploading ( upload 2 times)
The populating label showed and after 2 days I got the matching rate but 
comparing to direct upload by adding CSV using UI that matching rate quite 
different. 

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d5d3bd2a-d94b-41dc-9584-5072d40349e0%40googlegroups.com.


Re: Changing keyword-specific bid to ad group default bid via Ads API (Python)

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hey Michael,

Please check out this forum post about adding the path to your fieldMask. It 
looks like you need to add the code: 
"operation.update_mask.paths.append('cpc_bid_micros')". You don't need to set 
any new value to the ad_group_criterion.cpc_bid_micros.value.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWHab:ref

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

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


RE: how can I get gmail adress in java google api

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hello,

If you are referring to the emails of users in an account, please note that 
this information is not available via API. You will have to check for user 
information within the UI. If this is not what you are looking for, please 
elaborate on your concern.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UXWNqc:ref

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

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


RE: Report bid strategy per network?

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi,

Unfortunately, there is no way to segment bid strategies by network using 
either AdWords API or Google Ads API.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UXWQmT:ref

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

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


RE: how can i get the resource‘s creation time?

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Hao Xi,

Thank you for reaching out to us. I see that you want to get the creation and 
and termination date for your campaigns. In the campaign report, you can query 
the campaign.start_date and campaign.end_date, as well as having the same 
attributes for the campaign object. The change_status's last_change_date_time 
field is when the campaign or ad group last had a changed applied to it. Let me 
know if you have further questions.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001UXWN81:ref

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

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


RE: Repeating Instantiation Exception when invoke AdWordsServices .get(Selector selector) or mutate(AdGroupCriterionOperation[] operations)

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Daria,

Thank you for reaching out. Can you please share the complete detailed request 
and response logs of the API call via Reply privately to author? You can find 
information on enabling logging here (log level INFO).

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWON7:ref

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

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


RE: Getting exception while creating Dynamic Display Ad feed

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Indrani,

Can you please provide your full request and response that you are seeing for 
this API call using reply privately to author?

Thanks,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UXWE5L:ref

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

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


Re: Google Ads API V3 PHP is not working

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Amit,

I see that you have several inquiries. You can find my answers below.

For parts 1 and 2, I see that you're trying to use a curl request and using our 
PHP client libraries together. Could you confirm if you're using this example 
to obtain the campaigns?

For part 3, I see that you're having an issue that is with an invalid argument. 
It looks like you're trying to query the campaign information from the manager 
account. You aren't able to perform this action on manager accounts as they 
only manage accounts, not campaigns. For you to obtain this information, you 
will need to query the campaign information from each account under the manager 
account.

4. You are able to see the customer ID of the current account you're logged 
into by clicking the "?" button on the top right hand corner of the UI. It 
should list your Customer ID.

5. It is possible to have the same client id, client secret, refresh token, and 
developer token used in the same API call type for all 10 different accounts. 
You just need to make sure that the user is given correct access in the manager 
account that holds these 10 accounts. You can check this by going into "Tools & 
Settings" > "Setup" > "Account Access". Under the "Users" tab, you should be 
able to find a list of users that are given access to the manager account and 
the accounts underneath it.

Let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001UXVi3P:ref

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

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


RE: Unable to create Universal App Campaigns with the new Google Ads API (operation_access_denied_error)

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Milan,

Thank you for reaching out. Can you please share the complete detailed request 
and response logs for the call via Reply privately to author so that I can 
further investigate the issue? You can find information on enabling logging 
here (log level NOTICE). Make sure you are making the call using a client 
account and not an MCC account.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWPAi:ref

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

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


RE: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Diana,

Can you please provide your complete detailed request and response logs of your 
API call via Reply privately to author so that I can further investigate the 
issue? You can find information on enabling logging in the ReadMe of your 
client library.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWCTf:ref

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

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


Re: Changing keyword-specific bid to ad group default bid via Ads API (Python)

2020-03-24 Thread Michael Harkin
Thanks for your response Mitchell. I've tried what you suggested but it 
still fails to update. Here's the code I'm now trying out, based on the 
example you sent me:

import argparse
import sys

from google.api_core import protobuf_helpers
from google.ads.google_ads.client import GoogleAdsClient
from google.ads.google_ads.util import ResourceName

def main(client, customer_id, ad_group_id, criterion_id):
agc_service = client.get_service('AdGroupCriterionService', version='v3'
)

ad_group_criterion_operation = client.get_type(
'AdGroupCriterionOperation',
   version='v3')

ad_group_criterion = ad_group_criterion_operation.update
ad_group_criterion.resource_name = agc_service.ad_group_criteria_path(
customer_id, ResourceName.format_composite(ad_group_id, 
criterion_id))
ad_group_criterion.cpc_bid_micros.value = 0
fm = protobuf_helpers.field_mask(None, ad_group_criterion)
ad_group_criterion_operation.update_mask.CopyFrom(fm)

 try:
 agc_response = agc_service.mutate_ad_group_criteria(
 customer_id, [ad_group_criterion_operation])
 except google.ads.google_ads.errors.GoogleAdsException as ex:
 print('Request with ID "%s" failed with status "%s" and includes 
the '
   'following errors:' % (ex.request_id, ex.error.code().name))
 for error in ex.failure.errors:
 print('\tError with message "%s".' % error.message)
 if error.location:
 for field_path_element in error.location.
field_path_elements:
 print('\t\tOn field: %s' % field_path_element.
field_name)
 sys.exit(1)


if __name__ == '__main__':
google_ads_client = GoogleAdsClient.load_from_storage()
parser = argparse.ArgumentParser(
description=('Pauses an ad in the specified customer\'s ad group.'))
parser.add_argument('-c', '--customer_id', type=str,
required=True, help='The Google Ads customer ID.')
parser.add_argument('-a', '--ad_group_id', type=str,
required=True, help='The ad group ID.')
parser.add_argument('-k', '--criterion_id', type=str,
required=True, help='The criterion ID, or keyword 
ID.')
args = parser.parse_args()

main(google_ads_client, args.customer_id, args.ad_group_id,
args.criterion_id)

Here's what the log says after I run this for an update for a single 
keyword:

results{
  resource_name: 
"customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}"

}

Looking at the keyword in the Ads UI after running this Python file, the 
keyword-specific bid is still there and unchanged. Is setting 
cpc_bid_micros to 0 in the field mask an incorrect way of going about 
removing these bids? Do I need to set it to a "default" or "None"-type 
value? Thanks.

On Tuesday, March 24, 2020 at 10:29:50 AM UTC-4, adsapiforumadvisor wrote:
>
> Hi Michael,
>
> Thank you for reaching out. You need to use a FieldMask 
> 
>  
> to update this value to default. You should use this example 
> 
>  
> and create a new FieldMask with the path "cpc_bid_micros" and add that to 
> the AdGroupCriterionOperation.
>
> The logs should look like this:
> operations {
>   update {
> resource_name: 
> "customers/xx/adGroupCriteria/xx~"
> status: ENABLED
>   }
>   update_mask {
> paths: "cpc_bid_micros"
>   }
> }
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UXWHab:ref
>

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

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


Report bid strategy per network?

2020-03-24 Thread Zweitze
Hi all,

I want to report the bid strategy results using AdWords API v201809, and 
then segmented by network.
The matching report appears to be *BID_GOAL_PERFORMANCE_REPORT 
*,
 
but the network segment appears to be missing? I expected something like 
AdNetworkType2, maybe it is available through different means?
Note that the "Portfolio bid strategies" report in the Google Ads web UI 
does feature segmentations by network.

Is this segment being considered for BID_GOAL_PERFORMANCE_REPORT?
Any other suggestions?

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/13810721-b4b1-42fa-bd1e-143724a532c5%40googlegroups.com.


RE: Getting All Search Volume Data For TargetingIdeaService

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Oguz,

Thank you for reaching out. Unfortunately, you can only get the last 12 months 
of data in the API TargetingIdeaService.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWOkG:ref

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

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


RE: Changing keyword-specific bid to ad group default bid via Ads API (Python)

2020-03-24 Thread Google Ads API Forum Advisor Prod
Hi Michael,

Thank you for reaching out. You need to use a FieldMask to update this value to 
default. You should use this example and create a new FieldMask with the path 
"cpc_bid_micros" and add that to the AdGroupCriterionOperation.

The logs should look like this:
operations {
update {
resource_name: "customers/xx/adGroupCriteria/xx~"
status: ENABLED
}
update_mask {
paths: "cpc_bid_micros"
}
}

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UXWHab:ref

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

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


Re: Google Ads API V3 PHP is not working

2020-03-24 Thread Amit Lahiri
Hi Bryan. 

Many thanks for the reply. 

1. I am using the same example process as referrred by you 
https://developers.google.com/google-ads/api/docs/concepts/curl-example. 
I was confuded with the below code and was not understanding how do I these 
lines of code in PHP.
curl \
  -d code=AUTHORIZATION CODE \
  -d client_id=CLIENT ID \
  -d client_secret=CLIENT SECRET \
  -d redirect_uri=urn:ietf:wg:oauth:2.0:oob \
  -d grant_type=authorization_code 
https://accounts.google.com/o/oauth2/token

2. I am using the same library with examples as referred by you. 


*In the meantime I have resolved the issue of OAuth2 login issue. I am 
facing new issue at the moment. I am explaiing my issues and doubts. *

1. I have opened a new Test account and use it's customer id in my code. 
After running getting the below error.

ApiException was thrown with message '{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 0,
"data": 
"type.googleapis.com\/google.ads.googleads.v3.errors.GoogleAdsFailure"
},
{
"@type": 0,
"data": [
{
"errorCode": {
"queryError": "REQUESTED_METRICS_FOR_MANAGER"
},
"message": "Metrics cannot be requested for a manager 
account. To retrieve metrics, issue separate requests against each client 
account under the manager account."
}
]
}
]
}'.

What it is saying in "message": "Metrics cannot be requested for a manager 
account. To retrieve metrics, issue separate requests against each client 
account under the manager account."? What am I supposed to do? I still do 
not have the access to Manager account. I can access the Test account only. 

2. How do I get customer id when log in? 
3. Is it possible to access the 10 different customer campaign details with 
10 different customer ids, but with the same client id, client secret, 
refresh token and developer token? I wish to write a dynamic where I will 
make the customer id dynamic as log in with other resources constant. Is it 
possible?

I am waiting for the reply.


Best Regards,
Amit 









On Tuesday, March 24, 2020 at 12:07:05 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi Amit,
>
> Thank you for the update. I see that you have four concerns. My response 
> is below.
>   
> 1. Is my parameters settings, curl calling and overall coding snippet 
> missed anything? Am I need to add more settings in parameters?
> Could you make sure you follow this example 
>  
> in making cUrl API calls? It looks like you need to include the correct 
> authorization parameters to connect to the API.
>  
> 2. I am the developer working for the client. I am using my email address 
> to create OAuth Client Id using GCP. Am I need to create OAuth Client Id 
> using Google Ad Manager's email address?
> As long as your email address has been given correct access to the Manager 
> Account and the accounts under it then you should be able to connect to the 
> API and access those accounts. You can check this by logging into the 
> Manager account, then checking "Tools & Settings" > "Setup" > "Account 
> Access". Your email should be listed under "Users". Otherwise, you can also 
> use the Manager Account's email address to make the OAuth Client 
> Credentials.
>  
> 3. I am using library google-ads-php in the development. I am working with 
> Laravel framework. Is there any better way to implement the same?
> Could you provide me with the link to the Laravel framework? You should be 
> able to implement this example library 
>  for 
> PHP for Google Ads API.
>  
> 4. Where do I get example of REST API?
> You can find all the examples of the Google Ads API here 
> .
>
> Let me know if you have further questions.
>
> Thank you,
> Bryan, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UXVi3P:ref
>

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this 

Unable to create Universal App Campaigns with the new Google Ads API (operation_access_denied_error)

2020-03-24 Thread Milan van Dijck
For the past three days I have been trying to get Campaign creation for 
Universal App Campaigns working on my test MCC account. My client is 
programmed in PHP I have added the code below. I am using the Google Client 
API for PHP to do my requests via GRPC.
I have followed the following guide to get the right settings for a 
Universal App Campaign: 
https://developers.google.com/google-ads/api/docs/app-campaigns/create-campaign

I have tried:

   - Removing every field one-by-one to but this always results in an error 
   saying a necessary field is missing. (except for the start & end date 
   fields)
   - Removing all optional fields
   - Creating a search campaign (which works fine)

But whatever I do, I always get the following error:
GoogleAdsException: operation_access_denied_error, This operation is not 
permitted on this campaign
- or -
An error that says a required field is missing.

There is just nothing left I can think of to solve the error above without 
removing fields that are required to make an App campaign. It would be very 
helpful if the error specified which operation was not permitted.

(I am using the V3 objects from the googleads/google-ads-php composer 
package at version 3.1.0)

$customerId = "4708071192";

try {
/* @var GoogleAdsClient $googleAdsClient */

// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile(GOOGLE_ADS_SETTINGS)->build();

// Construct a Google Ads client configured from a properties file and 
the
// OAuth2 credentials above.
$googleAdsClient = (new GoogleAdsClientBuilder())
->fromFile(GOOGLE_ADS_SETTINGS)
->withOAuth2Credential($oAuth2Credential)
->build();

// Create the budget
$budget = new CampaignBudget();
$budget->setName(new StringValue(['value' => 'Universal App Campaign 
test budget [' . uniqid() . ']']))
->setDeliveryMethod(BudgetDeliveryMethod::STANDARD)
->setAmountMicros(new Int64Value(['value' => 50]))
->setExplicitlyShared(new BoolValue(['value' => false]));

// Creates a campaign budget operation.
$campaignBudgetOperation = new CampaignBudgetOperation();
$campaignBudgetOperation->setCreate($budget);

// Issues a mutate request.
$campaignBudgetServiceClient = 
$googleAdsClient->getCampaignBudgetServiceClient();
$response = $campaignBudgetServiceClient->mutateCampaignBudgets(
$customerId,
[$campaignBudgetOperation]
);

$addedBudget = $response->getResults()[0];
$budgetResourceName = $addedBudget->getResourceName();

// Create the bidding strategy
$strategy = new BiddingStrategy();
$strategy->setName(new StringValue(['value' => "testingStrategy19"]));
$targetcpa = new TargetCpa();
$targetcpa->setTargetCpaMicros(new Int64Value(['value' => 1]));
$strategy->setTargetCpa($targetcpa);

$biddingStrategyOperation = new BiddingStrategyOperation();
$biddingStrategyOperation->setCreate($strategy);

// Issues a mutate request.
$campaignBudgetServiceClient = 
$googleAdsClient->getBiddingStrategyServiceClient();
$response = $campaignBudgetServiceClient->mutateBiddingStrategies(
$customerId,
[$biddingStrategyOperation]
);
$addedBudget = $response->getResults()[0];
$biddingStrategy = $addedBudget->getResourceName();

// Create the campaign object
$startDate = new StringValue(['value' => date('Ymd', 
strtotime("2020-4-1"))]);
$endDate = new StringValue(['value' => date('Ymd', 
strtotime("2020-4-10"))]);

$campaignObject = new Campaign();
$campaignObject->setName(new StringValue(['value' => 'Universal App 
Campaign Test [' . uniqid() . ']']))
->setAdvertisingChannelType(AdvertisingChannelType::MULTI_CHANNEL)
->setStatus(CampaignStatus::PAUSED)
->setCampaignBudget(new StringValue(['value' => 
$budgetResourceName]))
->setStartDate($startDate)
->setEndDate($endDate)

->setAdvertisingChannelSubType(AdvertisingChannelSubType::APP_CAMPAIGN)
->setBiddingStrategy(new StringValue(['value' => $biddingStrategy]))

->setBiddingStrategyType(\Google\Ads\GoogleAds\V3\Enums\BiddingStrategyTypeEnum\BiddingStrategyType::TARGET_CPA);

$appCampaignSetting = new AppCampaignSetting();

$appCampaignSetting->setBiddingStrategyGoalType(AppCampaignBiddingStrategyGoalType::OPTIMIZE_INSTALLS_TARGET_INSTALL_COST);
$appCampaignSetting->setAppId(new StringValue(['value' => 
"com.nakko.android.nl100"]));
$appCampaignSetting->setAppStore(AppCampaignAppStore::GOOGLE_APP_STORE);

$campaignObject->setAppCampaignSetting($appCampaignSetting);

// Creates a campaign operation.
$campaignOperation = new CampaignOperation();
$campaignOperation->setCreate($campaignObject);

// Define campaign operations to be executed
$campaignOperations = [];
$campaignOperations[] = $campaignOperation;


Getting All Search Volume Data For TargetingIdeaService

2020-03-24 Thread Oguz Kahraman
Hello,

I'm developing an application but i encountered a problem.
When i look from UI i'm getting last 4 years search volume data but when i 
try by api with enable TARGETED_MONTHLY_SEARCHES just returning 12 months 
data.
How can i get all search volume data from keywords planner? Do you have any 
suggestion?

Thanks.

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

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


Repeating Instantiation Exception when invoke AdWordsServices .get(Selector selector) or mutate(AdGroupCriterionOperation[] operations)

2020-03-24 Thread Daria Nikiforova
Dear Google Ads API Forum,


I have a repeating issue when invoke Google Ads API, in general it works 
well, but it happens pretty often that processing of campaigns, groups or 
keywords using API interrupts with the exception:

com.google.api.ads.adwords.axis.v201809.cm.ApiException: null at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
java.lang.Class.newInstance(Class.java:442) at 
org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:104) 
at 
org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:90) 
at 
com.google.api.ads.adwords.axis.v201809.cm.ApiException.getDeserializer(ApiException.java:165)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:498) at 
org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
 
at 
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
 
at 
org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
 
at 
org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
 
at 
org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
 
at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
 
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
 
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
 
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
 
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
 
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
 
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
 
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
 
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
 
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) 
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
 
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
 
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
 
at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
 
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at 
org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
 
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at 
org.apache.axis.client.Call.invokeEngine(Call.java:2784) at 
org.apache.axis.client.Call.invoke(Call.java:2767) at 
org.apache.axis.client.Call.invoke(Call.java:2443) at 
org.apache.axis.client.Call.invoke(Call.java:2366) at 
org.apache.axis.client.Call.invoke(Call.java:1812) at 
com.google.api.ads.adwords.axis.v201809.cm.CampaignServiceSoapBindingStub.get(CampaignServiceSoapBindingStub.java:1560)
 
at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:498) at 
com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:100)
 
at 
com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:234)
 
at 
com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:63)
 
at 
com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)
 
at com.sun.proxy.$Proxy206.get(Unknown Source)...

Code fragments where the exception happens are the following:

1) List someOperations = 
   AdGroupCriterionOperation[] operations =

someOperations.toArray(new 
AdGroupCriterionOperation[someOperations.size()]);
   AdGroupCriterionReturnValue result = 
adGroupCriterionService.mutate(operations);


2) SelectorBuilder builder = new SelectorBuilder();

Selector selector = 

請問一下 如何取的google登入的帳號信箱

2020-03-24 Thread 邱泓儒
請問一下 如何取的google登入的帳號信箱

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

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


how can I get gmail adress in java google api

2020-03-24 Thread 邱泓儒
how can I get gmail adress in java google api

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

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


Re: {'error': 'invalid_grant', 'error_description': 'Bad Request'}

2020-03-24 Thread Diana Dziubak

>
> Hi!


Thanks for your answer. But I still have a problem with this.

 My email address - petrovna.netp...@gmail.com

 My client customer ID - 864-831-5368

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

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


how can i get the resource‘s creation time?

2020-03-24 Thread hao xi
I want to list the campaigns between creation start and end time. 
How can i get the resource‘s  attribute[creation time],  
I found [creation time] is not a field in campaign resource, and the 
last_change_date_time 
from ChangeStatus is maybe creation time or modification time.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0007e01a-7466-493b-b1e8-09bcbb57ea75%40googlegroups.com.