Auth issue

2022-12-02 Thread Dan Willoughby
Hi,

I am getting the below error response:

errors {

  error_code {

authorization_error: USER_PERMISSION_DENIED

  }

  message: "User doesn\'t have permission to access customer. Note: If 
you\'re accessing a client customer, the manager\'s customer id must be set 
in the \'login-customer-id\' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;

}

request_id: "mQoaR4UejQk7Wn8kh3skMQ"

, 'mQoaR4UejQk7Wn8kh3skMQ')


This seems to be happening randomly, even though the error indicates it is 
not random. I retry this manually on the server (same arguments passed) and 
it returns as expected. But overnight we randomly get errors like the 
above. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/cf198911-5773-4589-b51b-7d2feb74c480n%40googlegroups.com.


Re: How to determine what is causing RESOURCE_EXHAUSTED?

2022-09-27 Thread Dan Willoughby
Im on using the official python client V11 and my retry time is also 900 
seconds. Identical to other users details.

On Tuesday, September 27, 2022 at 11:20:31 AM UTC+1 Dan Willoughby wrote:

> I am also facing the same issue all of a sudden, (last 12-16 hours 
> roughly). Despite having standard access and no increase in request volume. 
> Is this a temporary issue or should I be changing something?
>
> On Friday, August 5, 2022 at 7:35:10 PM UTC+1 salesmar...@gmail.com wrote:
>
>> How can I see what's causing my API limits to be reached? I get the error 
>> when trying to enable or pause a campaign, but I only do that once/day. So 
>> something else is hitting my API hard - probably a thirrd party service 
>> that monitors my ads.
>>
>> I need to see a report of my API calls so I can confirm what's using up 
>> my quota.
>>
>> Where is there such a report?
>>
>> 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 
"Google Ads API and AdWords 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/2baad8d9-652c-4695-8ce6-41fa705a2e8an%40googlegroups.com.


Re: How to determine what is causing RESOURCE_EXHAUSTED?

2022-09-27 Thread Dan Willoughby
I am also facing the same issue all of a sudden, (last 12-16 hours 
roughly). Despite having standard access and no increase in request volume. 
Is this a temporary issue or should I be changing something?

On Friday, August 5, 2022 at 7:35:10 PM UTC+1 salesmar...@gmail.com wrote:

> How can I see what's causing my API limits to be reached? I get the error 
> when trying to enable or pause a campaign, but I only do that once/day. So 
> something else is hitting my API hard - probably a thirrd party service 
> that monitors my ads.
>
> I need to see a report of my API calls so I can confirm what's using up my 
> quota.
>
> Where is there such a report?
>
> 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 
"Google Ads API and AdWords 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/1f88dd20-8acd-49af-bfb8-1df45774fa90n%40googlegroups.com.


batch job not finishing or returning an exception

2022-04-01 Thread Dan Willoughby
 

Hi,

I'm testing the batch job service and I followed the googleads python 
libraries example, yet I keep getting this response from the 
ListBatchJobResultsRequest service:


Request made: ClientCustomerId: *redacted*, Host: googleads.googleapis.com, 
Method: 
/google.ads.googleads.v10.services.BatchJobService/ListBatchJobResults, 
RequestId: **, IsFault: True, FaultMessage: Results cannot be retrieved 
until batch job is finished.


I simplified the request to be a simple campaign status change, this is the 
operations array I pass:

[campaign_operation {

  update {

resource_name: "customers/*redacted*/campaigns/*redacted*”

status: PAUSED

  }

}

]

I also removed the asyncio sections and made the methods sync rather than 
async as the async version was taking a long time to poll and I didn't want 
to hit any quotas.

This is also the full exception object:

GoogleAdsException(<_InactiveRpcError of RPC that terminated with:

   status = StatusCode.INVALID_ARGUMENT

   details = "Request contains an invalid argument."

   debug_error_string = 
"{"created":"@1648813055.545324000","description":"Error received from peer 
ipv4:*redacted*","file":"src/core/lib/surface/call.cc","file_line":904,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"

>, <_InactiveRpcError of RPC that terminated with:

   status = StatusCode.INVALID_ARGUMENT

   details = "Request contains an invalid argument."

   debug_error_string = 
"{"created":"@1648813055.545324000","description":"Error received from peer 
ipv4:*redacted*,”file":"src/core/lib/surface/call.cc","file_line":904,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"

>, errors {

  error_code {

batch_job_error: RESULTS_NOT_READY

  }

  message: "Results cannot be retrieved until batch job is finished."

}

request_id: "*redacted*"

, '*redacted*')

This makes me think the Results cannot be retrieved until the batch job is 
finished isn't the reason, could this be a package issue?

I have passed resource names of batch jobs I sent the previous day and they 
still return the same issue. Am I missing something, if there were an error 
would it return that exceptions reason rather than this response?

Lastly the class that builds the mutation operations works fine when I send 
a non batch mutation request. It's just limited to the batch job.

Cheers, 

Dan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/421804e2-a2fe-4ebb-a114-e13005000cb8n%40googlegroups.com.


App unverified after updating client secret etc

2021-10-11 Thread Dan Willoughby
Hi,

We have an app which was fully verified and using the adwords api. We 
changed the client secret and id as part of a security update. We are now 
faced with the app being reverified. Is there a way to speed this up?

Many thanks,
Dan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fb8b6ed6-c13c-43b9-b474-10b012b87bc6n%40googlegroups.com.


Removing an attribute from feed

2020-10-09 Thread Dan Willoughby
Hi,

I was wondering whether it is possible to remove an attribute from an ad 
customizer feed?

I tried and end up removing the whole feed.

I use this operation:

customizer_feed = {
'feedName': self.feed_name,
'feedId': self.feed_id,
'feedAttributes': column_name,
}

feed_service_operation = {
'operator': 'REMOVE',
'operand': customizer_feed,
}

for the AdCustomiserFeedService mutate call

many thanks,
Dan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/adb3d9dc-c0b5-4bb7-b87a-f37479fed8c9n%40googlegroups.com.


Feed Item Target Service Unmarshalling error

2020-10-06 Thread Dan Willoughby
Hi,

When I run a FeedItemTargetService mutate with the below operator:

campaign_target = {
'xsi_type': 'FeedItemCampaignTarget',
'feedId': ad_customiser_feed['id'],
'feedItemId': ad_customiser_feed_item['feedItemId'],
'campaignId': self.campaigns[unique_id]
}

operation = {'operator': 'ADD', 'operand': campaign_target}

 I get the following error:

Unmarshalling Error: For input string: "3bb08291" 

Any ideas on this?

Many thanks,
Dan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6f87a9c9-2a15-4512-b41f-d8ed18e5a62dn%40googlegroups.com.


AdCustomizerFeedError.NOT_AD_CUSTOMIZER_FEED

2020-10-06 Thread Dan Willoughby
Hi,

I am currently trying to switch from using the UI to upload ad customiser 
feeds to adwords. I already have accounts where the feed was uploaded via 
the UI. My first approach was:

- Get the feed ID
- Use feed ID to remove Feed
- Create a new feed and populate.

This works with test feeds created using dummy data. But when I use it for 
the feeds which were already present and associated with ad campaigns. I 
get this error,

AdCustomizerFeedError.NOT_AD_CUSTOMIZER_FEED @ operations[0].operand.feedId

When I look on the site in business data it states the feed is of type 'Ad 
customiser data', also other methods work such as removing feed items and 
getting feed id etc. 

I tried a second approach:

- Remove the feeds items completely
- Set the attributes (in case of new columns for the client)
- Populate with the new items/data.

Again this works with feeds that were added using the API. But not for 
these old feeds. The issue here is that when clients needs new columns 
adding, I need to add columns. But when I add columns it reproduces the 
above error.

AdCustomizerFeedError.NOT_AD_CUSTOMIZER_FEED @ operations[0].operand.feedId

I am wondering whether these feeds are a different feed type and require a 
different getservice call?

Is there a way to return the feed type of these older feeds to check if 
this is the issue? Or is it not possible to alter feeds in this way when 
they are being used for live ads?

Cheers,
Dan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a45117e9-a5ca-4ceb-84fe-8f38f66fe6fan%40googlegroups.com.