Getting "Missing report definition" while i'm calling Google AdWords API

2019-09-13 Thread Ting Lan
Hi there, 

I got the error in the oauth playground while i'm trying to pull report 
from Google Ads , see the details below, anyone could help?


POST /api/adwords/reportdownload/v201809 HTTP/1.1
Host: adwords.google.com
Clientcustomerid: 
Developertoken: xxx
Content-type: application/json
Content-length: 157
Authorization: Bearer 
xxx

  "query" : "SELECT campaign.name, campaign.status 

FROM campaign
WHERE segments.date DURING LAST_30_DAYS"
}

HTTP/1.1 400 Bad Request
Content-length: 236
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Expires: Fri, 13 Sep 2019 18:29:20 GMT
Server: GSE
-content-encoding: gzip
Cache-control: private, max-age=0
Date: Fri, 13 Sep 2019 18:29:20 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="46,43,39"
Content-type: text/xml

ReportDownloadError.MISSING_PARAMETERMissing
 report 
definition

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7bdd7e2b-75e6-4f0f-8c9d-646184052a3f%40googlegroups.com.


Adwords Api Errors: OperationAccessDenied.MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT

2019-09-13 Thread Alex
Hi All,

I am getting following errors when try to pause an expanded text ad in a 
campaign (Search Campaign).

Error: OperationAccessDenied.MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT at 
operations[1]

Service: AdGroupAdService

Operation:
 
AdGroupAd adGroupAd = new AdGroupAd
{
status = AdGroupAdStatus.PAUSED,
adGroupId = adGroupId,
ad = new Ad
{
id = adId
}
};
AdGroupAdOperation operation = new AdGroupAdOperation
{
@operator = Operator.SET,
operand = adGroupAd
};


AdGroup and Ad Ids are correct and campaign is search campaign and ad is 
expanded text ad.

I already verified that this is not a experiment, express, or smart 
campaign. I am able to pause and resume keywords in the same ad group. and 
also able to change bid for keyword.

If you need any more details, please let us know.

Thanks
Alex

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

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


How to get keywords top of page bid through API

2019-09-13 Thread Иван Красуля
Hi everybody!

I use TargetingIdeaService to get targetingIdeaPage for my keywords and 
locations.
When I use the Google keyword planner tool for similar purposes, I can see 
the Top of page bid columns. Can I get the same values using the AdWords 
API?

Also, in the "Google keyword planner" when I click on the Plan Overview, I 
can see the values of Average CPC and Cost. Can I get these values using 
the API? I tried using TrafficEstimatorService but I get these values 
separately for each keyword. Maybe I just need to find the average?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ed86ea67-b81f-4c59-b801-9616cec74ee7%40googlegroups.com.


RE: RESOURCE_NOT_FOUND wile tring to add account budget

2019-09-13 Thread Google Ads API Forum Advisor Prod
Hi Jia,

Thank you for reaching out. Could you please make sure if you are providing a 
valid billing set up id while adding account budget proposal? The billing setup 
is associated with a payments account and the resource name for the billing set 
up must be in below format.
customers/{customer_id}/billingSetups/{billing_setup_id}
You might find this guide useful while adding account budget using 
BillingSetupService. Please give this a try and let me know if this helps. If 
the issue still persists, could you please share the complete request and 
response logs along with the client customer id for me to investigate further? 
Please use Reply privately to author option while sharing the information.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UHGWPU: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/mJVp80PXSFYE00QaLQIWvbQ9qVQ-Nzwcyx9w%40sfdc.net.


RE: NO_SIGNUP_PERMISSION when creating new billing setups?

2019-09-13 Thread Google Ads API Forum Advisor Prod
Hello Min,

Billing setups can only be created by customers who have permission to setup 
billings. For this you have to reach-out to the Technical Account Manager that 
assists your concerns at Google. Please let me know if you have any further 
questions.

Regards,
Sai Teja, GOogle
ref:_00D1U1174p._5001UHGfyd: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/yvLMY0PXSDDQ00y4lQlq2PQBeFHQhOWTDGwA%40sfdc.net.


Re: Operator >= with metrics.conversions

2019-09-13 Thread Google Ads API Forum Advisor Prod
Hello Chirag,

You will be able to achieve this by combining the conditions using AND. Sample 
report query is below:

query: "SELECT ad_group_ad_asset_view.performance_label, asset.id, 
campaign.advertising_channel_sub_type FROM ad_group_ad_asset_view WHERE 
metrics.conversions > 0 AND metrics.conversions = 0"

Hope this helps!

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHGOI3: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/KDX070PXRYEF00wU5Ql-NeTX6dVhDQDg_3jg%40sfdc.net.


Re: Not found field mapping of CreativeFinalUrlSuffix in Ad Performance Report mapping to Google Ads API report

2019-09-13 Thread Google Ads API Forum Advisor Prod
Hi,

I'm afraid, currently we will not be able to share a definite timeline on when 
this feature is available. Please monitor our blog for more updates.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UHGYIk: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/MIyaO0PXRXAP00JMrqlIDlSCCLnK1P93VABw%40sfdc.net.


NO_SIGNUP_PERMISSION when creating new billing setups?

2019-09-13 Thread min jia
I'm tring with account level biiling setup followed by google-ads-api Creating 
new billing setups 
. 
As It suggested  
To sign up with an *existing* Payments account, set the payments_account to 
the resource ID of a valid Payments account (payments_account_info should 
*not* be set).


I tired with below codes:


from __future__ import absolute_import

import argparse
import six
import sys
import os
import google.ads.google_ads.client

GG_DEVELOP_TOKEN = "GG_DEVELOP_TOKEN"


def main(client, customer_id):
billing_setup_service = client.get_service('BillingSetupService',
   version='v2')

# Create billing setup operation.
billing_setup_operation = client.get_type('BillingSetupOperation',
  version='v2')
setup = billing_setup_operation.create
payments_accounts_path = 
"customers/{}/paymentsAccounts/{}".format(customer_id, 
"payments_account_id")

setup.payments_account.value = payments_accounts_path
setup.start_time_type = client.get_type("TimeTypeEnum").NOW

try:
billing_setup_response = billing_setup_service.mutate_billing_setup(
customer_id, billing_setup_operation)
print(billing_setup_response)
except google.ads.google_ads.errors.GoogleAdsException as ex:
print(ex)


if __name__ == '__main__':
# GoogleAdsClient will read the google-ads.yaml configuration file in 
the
# home directory if none is specified.

credentials_dict_lb = {"token_uri": 
"https://oauth2.googleapis.com/token;, "token": None, "scopes": 
["https://www.googleapis.com/auth/adwords;, 
"https://www.googleapis.com/auth/userinfo.profile;, 
"https://www.googleapis.com/auth/userinfo.email;, "openid"], "client_id": "
client_id", "refresh_token": "refresh_token", "client_secret": "
client_secret"}

credentials_m = 
google.oauth2.credentials.Credentials(**credentials_dict_lb)

google_ads_client = 
google.ads.google_ads.client.GoogleAdsClient(credentials_m, 
GG_DEVELOP_TOKEN, login_customer_id='123456789')


parser = argparse.ArgumentParser(
description=('Removes billing setup for specified customer and 
billing '
 'setup ID.'))
# The following argument(s) should be provided to run the example.
parser.add_argument('-c', '--customer_id', type=six.text_type,
required=True, help='The Google Ads customer ID.')
args = parser.parse_args()

main(google_ads_client, args.customer_id)


And after executed the script I  get error like 

Request made: ClientCustomerId: 6384836037, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v2.services.Bil
 lingSetupService/MutateBillingSetup, RequestId: pG9Dfss2kjObc5P4Cjazpw, 
IsFault: True, FaultMessage: The customer does not ha  
   ve permission to signup for billing.
(<_Rendezvous of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1568360172.261203468","description":"Error received from peer 
ipv4:10.0.0.19:8118"
 
,"file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Request 
contains an invalid argument.","grpc_status": 3}"
>, <_Rendezvous of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1568360172.261203468","description":"Error received from peer 
ipv4:10.0.0.19:8118"
 
,"file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Request 
contains an invalid argument.","grpc_status": 3}"
>, errors {
  error_code {
billing_setup_error: NO_SIGNUP_PERMISSION
  }
  message: "The customer does not have permission to signup for billing."
}
, 'pG9Dfss2kjObc5P4Cjazpw')


But whe I print the billing setups under the customer I get a new biiling 
setup with status "PENDING"

Billing setup with ID "568283111", status "PENDING", payments_account 
"customers/6384836037/paymentsAccounts/payments_account_id", 
payments_account_id "payments_account_id", payments_account_name "", 
payments_profile_id "payments_profile_id", payments_profile_name "", 
secondary_payments_profile_id "".


It seemd that the new billing setup wat successfully created, but I get a 
error, why this happend? Besides why payments_account_name is not displayed?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 

Re: Operator >= with metrics.conversions

2019-09-13 Thread cv
Hi,

This is same error I can see under log.

I have expected the document which operator is supported by which 
metrics/segments.

How I can have condition >= for conversions?

Thanks,



On Wednesday, 11 September 2019 22:24:49 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Chirag, 
>
> The operator: >= is not one of the supported operators for 
> metrics.conversions. You may use the valid operators for this operation 
> such as: =, !=, <, >, IN, NOT IN, IS NULL, IS NOT NULL. You will be able to 
> combine the one of more conditions using AND. Could you please give this a 
> try with one of these operators and let us know if you encounter any 
> issues? 
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UHGOI3: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/e749abbd-e08f-4ac2-8e23-e0b4f3edf860%40googlegroups.com.