Get keyword label

2020-10-11 Thread Harshad Khanapure
Hi,

I am trying to get  "Label" of keyword using following query,

query = """
SELECT
  ad_group_criterion_label.label

FROM ad_group_criterion_label

LIMIT 10
"""


But it returns 

{'Keyword_Label': [value: "customers/9987799870/labels/3946634442", value: 
"customers/9987799870/labels/3946634442", value: 
"customers/9987799870/labels/3946634442", value: 
"customers/9987799870/labels/3946634442", value: 
"customers/9987799870/labels/3946634442", value: 
"customers/9987799870/labels/3947330156", value: 
"customers/9987799870/labels/3947330156", value: 
"customers/9987799870/labels/3947330156", value: 
"customers/9987799870/labels/3947330165", value: 
"customers/9987799870/labels/3947330165"]}


What I intent to get is the actual "labels" not "ids". Can you let me know 
correct way to do ( correct resources in "SELECT" and "FROM" clause

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

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


moving from Google Adwords to Google Ads

2020-10-11 Thread Yosef Arraf
Hi, 
currently we are using Google Adwords API and we start working on moving to 
use  Google Ads API following are my questions:
 
   
   1. i see that we need to send our *refresh token* in our request, no 
   need to send the access token, Google will take care of the access token key
   2. we are receiving the error :errors {
 error_code {
   authorization_error: MISSING_TOS
 }
 message: "*The developer must sign the terms of service. They can be 
   found here: ads.google.com/aw/apicenter 
   "*
   }
  1. can i *sign the terms of service *on the Google Console?
  2. if i already use developer token with exist Credentials (Client id 
  and Client secret) how can *sign the terms of service *
   
Thanks,
Yosef

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bc444701-c66a-465e-9d0b-16c32c9c170en%40googlegroups.com.


API_requests rate sheet

2020-10-11 Thread Harshad Khanapure
Hi,

*1. I am trying to understand things on the following page*

https://developers.google.com/adwords/api/docs/ratesheet#api-operations

If I ran the following query 

query = """
SELECT
  ad_group_criterion.cpc_bid_micros,
  ad_group_criterion.keyword.text,
  ad_group_criterion.keyword.match_type,
  ad_group_criterion_label.label,
  campaign.name


FROM keyword_view

WHERE ad_group_criterion.type = KEYWORD
AND campaign.name= 'XXX XXX XXX'
"""

It returns 1,000,000+ keywords data. Does that mean it will be counted as 1 
operation or 1,000,000+?



*2. As it's mentioned in the above link that daily limit for operation is 
10,000. If I try to execute code which performs more than 10,000 
operations(mutate), *

A . will it show an error  stating - you can not perform more than 1 
operations and code will not be executed OR 

B. code will get executed and I will be charged for operations above 10,000


*3. For following code*

*I am trying to change Max CPC of three keywords, will it be counted as 3 
operations and I will be charged for three operations OR it will be treated 
as 1 operation*

def bid_change(client, customer_id, ad_group_id, criterion_id,bid): 
agc_service = client.get_service("AdGroupCriterionService", version="v5")


ad_group_criterion_operation = client.get_type(
"AdGroupCriterionOperation", version="v5"
)


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)
)
#customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}
ad_group_criterion.cpc_bid_micros= bid
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)


print("Updated keyword %s." % agc_response.results[0].resource_name)




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/87ea6c63-2f1d-4558-ab98-5f6bde08fc4en%40googlegroups.com.


How can I obtain via the GOOGLE ADS API, the credit balance available in an ads account?

2020-10-11 Thread Paulo Rocha Pedro

Seeing the API documentation, I didn't find any field that provides the 
Balance of credits for an ADS account, I need help with how I can get this 
information.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/94ee92f0-9357-45f3-ad67-ba1159195b64n%40googlegroups.com.


[no subject]

2020-10-11 Thread Archahei Soy TT


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAFHtHd-CKtpyPyEo7RNJMPXbpU%3DQX%3D13o0i_D1v8Oqqgzu11Rw%40mail.gmail.com.


RE: Get keyword label

2020-10-11 Thread Google Ads API Forum Advisor Prod
Hi Harshad,

Thanks for posting your concern.

Could you try adding the label.name field in the report? Let me know how it 
goes after trying the provided suggestion.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q268P4q: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/deGTA0QI2EO800BGKdY601RaqU0shfFHyF1A%40sfdc.net.


RE: Could you help me to undestand why $adGroupAdService->get always return empty?

2020-10-11 Thread Google Ads API Forum Advisor Prod
Hi Pavel,

Thanks for posting your concern.

To further investigate, could you provide the complete SOAP request and 
response logs generated on your end together with the customer ID? You can 
provide it via Reply privately to author option.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q268KEB: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/YHi8O0QI2EQR00IkPr-vduS8mw6QdpvLcbww%40sfdc.net.


Generate Per Day Report

2020-10-11 Thread Karl Angelo Tanjuan
Hi,

I would like to create a per day report of metrics like clicks, 
impressions, etc, Can anyone help me? I couldn't find how  to do it, the 
sample screenshot below is the one that I need to achieve , please help, 
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/07a4f297-763e-43b4-9070-9257eafb6c30n%40googlegroups.com.


Re: Generate Per Day Report

2020-10-11 Thread Karl Angelo Tanjuan


On Monday, October 12, 2020 at 10:03:50 AM UTC+8 Karl Angelo Tanjuan wrote:

> Hi,
>
> I would like to create a per day report of metrics like clicks, 
> impressions, etc, Can anyone help me? I couldn't find how  to do it, the 
> sample screenshot below is the one that I need to achieve , please help, 
> 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/cd143eac-5d04-4956-b717-d394638fa03en%40googlegroups.com.


Re: Generate Per Day Report

2020-10-11 Thread Karl Angelo Tanjuan
On Monday, October 12, 2020 at 10:03:50 AM UTC+8 Karl Angelo Tanjuan wrote:

> Hi,
>
> I would like to create a per day report of metrics like clicks, 
> impressions, etc, Can anyone help me? I couldn't find how  to do it, the 
> sample screenshot below is the one that I need to achieve , please help, 
> 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/416f6392-f5e6-4ec8-94bd-f1b0df11e86en%40googlegroups.com.


[no subject]

2020-10-11 Thread Archahei Soy TT
ของเข้าร่วมกลุ่ม

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAFHtHd8Gez_K9AgSBDBJ9vMO1WiXhv_ZsLomJ5TnCiPTes4xgg%40mail.gmail.com.


RE: Monitor Google Ads API calls?

2020-10-11 Thread Google Ads API Forum Advisor Prod
Hi Daniel,

The API currently does not track the requests made by your developer token or 
which users are accessing the API, to your Google Ads accounts. However, you 
should be able to implement a counter on your end for each API call (get or 
mutate request) made by the said application, and also log which Google Ads 
account was being accessed in the call by referring to the customerId in the 
request header.

That said, allow me to create a feature request, subject for review, regarding 
your inquiry. For now, you may keep an eye on our blog for any updates or 
announcements.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2683su: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/xBGQ_0QI2RWF00CJC57mNGS3ebohNad9yECQ%40sfdc.net.


RE: Maximum number of resources

2020-10-11 Thread Google Ads API Forum Advisor Prod
Hi Dihan,

Thank you for your email.

Report sizes may be only up to 100,000 rows as discussed here. Also as 
discussed in our best concepts guide for retrieving objects, the recommendation 
would be to limit the number of objects returned, to avoid issues.

You may check out our paging guide and the rest of our streaming guide for the 
best reporting options you can implement that would fit your requirement.

Thanks,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2684Gd: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/e66BB0QI2RYA00yMVJCC7tQ-WimkLXrcSNng%40sfdc.net.


error when create responsive search ads

2020-10-11 Thread learn protect
Hi there,
I am trying to use the new php v5 library to create responsive search ads 

.
I have set the parameters according to the example, But all i get is an 
error message saying that the field 'ad_group' is missing.

*See attachment for production code and debug log.*

This is the run output:

""" {\n "message": "Request contains an invalid argument.",\n "code": 3,\n 
"status": 
"INVALID_ARGUMENT",\n "details": [\n {\n "@type": 
"google.ads.googleads.v5.errors.googleadsfailure-bin",\n "data": ""\n },\n {\n "@type": "grpc-status-details-bin",\n "data": 
""\n },\n {\n "@type": "request-id",\n "data": 
"Cyo_Q4uH8-7UNSiaFsMxyQ"\n }\n ]\n } """

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/27c4083e-800b-4be5-b823-0e889c81fa2fn%40googlegroups.com.
public function addAd(int $customer_id,int $group_id)
{
try{
$adGroupResourceName = 
ResourceNames::forAdGroup($customer_id,$group_id);

// Creates the responsive search ad info.
$responsiveSearchAdInfo = new ResponsiveSearchAdInfo();
$responsiveSearchAdInfo->setHeadlines([new AdTextAsset(['text'=> 
'head1'])]);
$responsiveSearchAdInfo->setDescriptions([new AdTextAsset(['text'=> 
'desc1'])]);

// Builds the final ad group ad representation.
$adGroupAd = new AdGroupAd([
'ad_group' => $adGroupResourceName,
'status'   => AdGroupAdStatus::PAUSED,
'ad' => new Ad([
'final_urls' => ['http://www.example.com'],
'responsive_search_ad' => $responsiveSearchAdInfo
])
]);

// Creates the operation
$adGroupAdOperation = new AdGroupAdOperation();
$adGroupAdOperation->setCreate($adGroupAd);

// Creates the AdGroupAdServiceClient.
$adGroupAdServiceClient = 
parent::client()->getAdGroupAdServiceClient();
// Adds the AdGroup.
$adGroupAdResponse = 
$adGroupAdServiceClient->mutateAdGroupAds($customer_id,[$adGroupAdOperation]);

dd($adGroupAdResponse);

}catch (ApiException $e){
dd($e->getMessage());
}
}

[2020-10-12T13:40:31.395450+08:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v5.services.GoogleAdsService/SearchStream", CustomerId: 
123456789, RequestId: "abc", IsFault: 0, FaultMessage: "None"  
[2020-10-12T13:40:31.770966+08:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v5.services.AdGroupAdService/MutateAdGroupAds", 
CustomerId: 123456789, RequestId: "abc", IsFault: 1, FaultMessage: "["Field 
'ad_group' is required for 'CREATE' operation."]"  
[2020-10-12T13:40:31.772382+08:00] google-ads.NOTICE: Request
---
Method Name: /google.ads.googleads.v5.services.AdGroupAdService/MutateAdGroupAds
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.3.4 gapic\/ gax\/1.4.0 grpc\/1.28.0",
"x-goog-request-params": "customer_id=123456789",
"developer-token": "abc",
"login-customer-id": "123456789"
}
Request: 
{"customerId":"123456789","operations":[{"create":{"status":"PAUSED","ad":{"finalUrls":["http:\/\/www.example.com"],"responsiveSearchAd":{"headlines":[{}],"descriptions":[{}]]}

Response
---
Headers: {
"request-id": "123456789",
"date": "Mon, 12 Oct 2020 05:40:31 GMT",
"alt-svc": "h3-Q050=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-27=\":443\"; ma=2592000,h3-T051=\":443\"; 
ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}

Fault
---
Status code: 3
Details: Request contains an invalid argument.
Failure: 
{"errors":[{"errorCode":{"requestError":"REQUIRED_FIELD_MISSING"},"message":"Field
 'ad_group' is required for 'CREATE' 
operation.","location":{"fieldPathElements":[{"fieldName":"operations","index":"0"},{"fieldName":"create"},{"fieldName":"ad_group"}]}}]}

RE: API_requests rate sheet

2020-10-11 Thread Google Ads API Forum Advisor Prod
Hi Harshad,

Thanks for posting your concern.

Could you clarify first if your concern is related to Google Ads API or AdWords 
API? I asked this because the report you have specified in #1 item is for 
Google Ads API but the document you've provided is for AdWords API. If your 
concern is related to Google Ads API, then this is the document that you should 
referring.

For now, since your code and report is based on Google Ads API, let me provide 
support on Google Ads API perspective as well.

Please find my answer below for each question:
1. It returns 1,000,000+ keywords data. Does that mean it will be counted as 1 
operation or 1,000,000+?
-Reports would currently not be able to return 1,000,000 records at a time. 
Report sizes may be only up to 100,000 rows as discussed here.

As additional information, please note that if page_size is not specified, it 
is automatically set to the maximum page size of 10,000 rows as discussed here. 
Also, as discussed in our best concepts guide for retrieving objects, the 
recommendation would be to limit the number of objects returned.

You may check out our paging guide and the rest of our streaming guide for the 
best reporting options you can implement that would fit your requirement.


2. As it's mentioned in the above link that daily limit for operation is 
10,000. If I try to execute code which performs more than 10,000 
operations(mutate),

-The daily operation limit for developer token with Basic access/Test account 
is 15,000 for Google Ads API. If you will perform more than 15,000 operations, 
then you will encounter the RESOURCE_EXHAUSTED quota error.

3. For following code
I am trying to change Max CPC of three keywords, will it be counted as 3 
operations and I will be charged for three operations OR it will be treated as 
1 operation
-This will count as 3 operations.

Let me know if you have further questions.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q268PDJ: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/ipbBE0QI2S2L000UvrmLhBRXSA1avrR61VbA%40sfdc.net.