Accessing google Ads API using a service account

2023-09-02 Thread Siddharth Mehta
I've been trying to authenticate to google ads API using my service account using the following code in python import pandas as pd from google.ads.googleads.client import GoogleAdsClient def main(): try: # Initialize the Google Ads API client with the service account key file

Budget error | NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT

2016-10-31 Thread siddharth . mehta
Hey, While creating budget on adwords, I'm getting the following error. {\"fieldPath\":\"operations[18].operand.amount\",\"trigger\":\"\",\"errorString\":\"BudgetError.NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT\",\"apiErrorType\":\"BudgetError\",\"reason\":{\"value\":\"NON_MULTIPLE_OF_MINIMUM_CURRENC

Exception while trying to download result using BatchJobService

2016-06-12 Thread siddharth . mehta
I'm getting exception while trying to download the batch job response. On using this url in the browser, the xml file is downloaded. But, I'm unable to download the response via code. Following is the exception : Exception in thread "main" com.google.api.ads.adwords.lib.utils.BatchJobExcepti

Not able to get product group tree

2015-10-01 Thread siddharth . mehta
Hi, I am running my application which uses adwords api "*google-ads-api-1.38.0*". While trying to get the product group tree for a given adgroup-id using following code, partitionTree = ProductPartitionTree.createAdGroupTree( new AdWordsServices(),

Re: Unable to add location extension via MutateJobService

2015-07-17 Thread siddharth . mehta
Please consider my requirement. I only want to add location extension at campaign level. In the documentation it specifies under "When are legacy feed services preferred?" that adWords does not support location extension to be uploaded using CampaignExtensionService. That's why I am using Campa

Re: Unable to add location extension via MutateJobService

2015-07-16 Thread siddharth . mehta
Hi Umesh, I am creating adExtension object. In the adExtension object I'm setting location extension object. In location extension object, documentation specifies that AdExtension.Type is not required to be provided. Then also, when I'm using MutateJobService to upload location extension by giv

Unable to add location extension via MutateJobService

2015-07-06 Thread siddharth . mehta
Hi, When I'm trying to add location extension by creating an object of CampaignAdExtension, and using the MutateJobService, it gives following error AdExtensionError.INVALID_ADEXTENSION_TYPE. I'm using the client library with version v201502. Can anybody tell me, which adExtensionType to be s