User in the cookie is not a valid Ads user

2021-04-08 Thread 徐艳君
Response

Headers: 
Metadata(content-type=application/grpc,request-id=2dN6p_K-uSl6CLDD-FQ5_g,date=Fri,
 
09 Apr 2021 02:33:56 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
authentication_error: NOT_ADS_USER
  }
  message: "User in the cookie is not a valid Ads user."
}

Status: Status{code=UNAUTHENTICATED, description=Request is missing 
required authentication credential. Expected OAuth 2 access token, login 
cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project., 
cause=null}.

I use the client to obtain advertising data, but when I use the service 
account to request, this error occurs

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f43ead8c-bef4-4150-971e-a95b7b70d8c7n%40googlegroups.com.


Best practice - read only access

2021-04-08 Thread Scott Spradlin
We have a new aspect of our business where we need to simply pull Google 
Ads data via the API for multiple customers -- in a read-only fashion. 
Let's say we'll have 20 new customers in the next few months -- each has a 
couple dozen accounts respectively.

Can you suggest the proper way to be doing that? Do our clients add one of 
OUR accounts to their MCC? We're not a fan of handing out an individual's 
email for that purpose. Can we use a service account instead of a user 
account?  (From the documentation, it seems that service accounts only give 
you the ability to impersonate other users in your domain -- and this would 
be cross domain.)

Thoughts? Directions? Advice? Any help appreciated. Does anyone else do 
this?

Scott

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e3d03599-6e92-41f7-8661-16fc89adf5aan%40googlegroups.com.


Re: Exact historical monthly search volume from KeywordPlanIdeaService?

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Joy,

Thank you for reaching out. The max number of saved keyword plans is 1. 
It's possible to remove plans if the limit is reached. The max number of 
keyword plan keywords per plan is also 1. And each of these steps you 
mentioned would count as one operation thus you could consider updating your 
access level to Standard access via this form to have unlimited operations per 
day.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2EqKpN: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/45mxm0QR9J0X00mu3gdRFHRKWvD8haeo1ysg%40sfdc.net.


Re: Two offline_user_data_job's from one OfflineUserDataJob request

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Roman,

Thank you for reaching out. If this option is not enabled for you, please 
directly send the requested information to our email alias 
googleadsapi-supp...@google.com.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2EqVui: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/Zvdpn0QR9HML00FKSpNmCPSCyFdntne4h5Ug%40sfdc.net.


RE: Error occurred during parsing: Fail to push the limit

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hello,

Thanks for reaching out. It appears you are using the PHP client library, 
specifically the LinkManagerToClient.php code example. As your inquiry seems to 
be with this specific implementation, and not the API itself, I recommend 
reaching out to the client library owners. You can post your issue on the PHP 
client library GitHub page here.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2FWqHB: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/6lCqK0QR9ESR007vrPFu2_QQqEozRcOjoQ3A%40sfdc.net.


RE: Some campaigns id were not found in Campaign performance report

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Fedor,

Local campaigns are not supported through AdWords API. To get performance 
statistics on local campaigns, you can use the campaign report through Google 
Ads API.

Regards,
Anthony

Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q2FWr96: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/yB_gS0QR99F3002T2JmmbMTOWS8b1IbT05iw%40sfdc.net.


Re: Conversions by Conversion date

2021-04-08 Thread Anant Prasad
Hey Ernie

Thanks for the response on this. 

Actually, I cannot publicly post the request and the response logs here 
since the data is not owned by us that's why I redacted all the values in 
the response and request logs which I sent you earlier. Also, the option to 
send the logs via `Reply privately to Author` button is not available for 
me. 

Can you please direct me to any other way through which I can directly send 
you the logs without the redacted values?

Looking forward to your response. Thanks!

Regards,
Anant Prasad




On Thursday, March 25, 2021 at 2:16:37 PM UTC+5:30 adsapiforumadvisor wrote:

> Hi Anant,
>
> Thank you for raising your concern. I work with Mark and let me provide 
> support to your concern.
>
> I would like to inform you that I am going to remove your latest post as 
> it contains API logs. Let me instead paste the body of your previous post 
> here.
>
> Moving forward, based on this document 
>  that is linked to 
> the metrics.conversions_by_conversion_date 
> ,
>  
> the equivalent field of this metric in the UI is *Conversions (by conv. 
> time)*. So I checked this field in your account and I can see that the 
> fields have value, with this, the API should also return metrics as well.
>
> That being said, could you provide the complete request 
> 
>  and response 
> 
>  logs 
> (with request-id 
> )
>  
> without redacted values so I can discuss with the rest of the team?
>
> "
>
>
>
>
>
> *Thanks for the quick response here.  I am attaching the complete outgoing 
> request as well as the incoming response logs which includes all the 
> details you have asked for.  As you can see in the attached files below, I 
> am requesting for two metrics i.e `conversions` and 
> `conversions_by_conversion_date`, but the Google Ads API is completely 
> ignoring the second metric and I am not getting anything for the requested 
> field. But for the first metric, I am getting the value as expected. Please 
> let me know if any more details will be required from my side to debug this 
> further.  Looking forward to a quick resolution on this. Thanks!*"
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Dw8AB: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/b401f194-3af3-45a0-8ba2-eeccdf5867a0n%40googlegroups.com.


Re: Exact historical monthly search volume from KeywordPlanIdeaService?

2021-04-08 Thread 'Joy Yu' via AdWords API and Google Ads API Forum
Also, how many keywords can I have in a keyword plan?

On Thursday, April 8, 2021 at 11:38:42 AM UTC-4 Joy Yu wrote:

> Hi Peter,
>
> Is there a limit to how many keyword plans a Google Ads account can have? 
>
> And the script I would have would: create a keyword plan, create a keyword 
> plan campaign, create a keyword plan ad group, create a keyword plan ad 
> group keyword, generate historical metrics.
>
> Do each of these steps count as 1 operation to the daily 10,000 limit on 
> basic accounts?
>
> Thanks,
>
> Joy
>
> On Wednesday, April 7, 2021 at 10:25:05 PM UTC-4 adsapiforumadvisor wrote:
>
>> Hi Joy,
>>
>> Unfortunately, a keyword plan would be required as mentioned in this 
>> section 
>> ,
>>  
>> when generating the (historical) metrics.
>>
>> You can opt to use the BatchJobService 
>> 
>>  
>> for creating keyword plans in bulk, since the KeywordPlanOperation 
>> 
>>  
>> is included in the list of supported mutate operations 
>> 
>>  
>> of this service.
>>
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence Napa Oliquino 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2EqKpN: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/0e37dabc-efa0-4472-8ae5-76d091b08658n%40googlegroups.com.


RE: InvoiceService query help

2021-04-08 Thread Martin Spurr
Hi Anthony,

Thanks very much for the response. Which is the best email address to use 
privately?

Thanks,
Martin

From: Google Ads API Forum Advisor Prod 
Sent: 08 April 2021 16:50
To: Martin Spurr 
Cc: adwords-api@googlegroups.com
Subject: RE: InvoiceService query help

Hi Martin,

Can you please provide the full API request and response through reply 
privately so that I can further investigate?

Thanks,
Anthony
[Google Logo]
Anthony
Google Ads API Team

[https://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U01174p=0184Q1CLDBB=ext]

ref:_00D1U1174p._5004Q2FWp0n:ref

Privileged/Confidential Information may be contained in this message. If you 
are 
not the addressee indicated in this message (or responsible for delivery of the 
message to such person), you may not copy or deliver this message to anyone. In 
such case, you should destroy this message and kindly notify the sender by 
reply 
email. Please advise immediately if you or your employer does not consent to 
email 
for messages of this kind. Opinions, conclusions and other information in this 
message that do not relate to the official business of Group M Worldwide LLC 
and/or 
other members of the GroupM group of companies shall be understood as neither 
given 
nor endorsed by it. GroupM is the global media investment management arm of WPP.
For more information on our business ethical standards and Corporate 
Responsibility 
policies please refer to WPP's website at http://www.wpp.com/WPP/About/

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/AM8PR06MB7425CB7B07577A073AF918C2F2749%40AM8PR06MB7425.eurprd06.prod.outlook.com.


RE: InvoiceService query help

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Martin,

Can you please provide the full API request and response through reply 
privately so that I can further investigate?

Thanks,
Anthony

Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q2FWp0n: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/ptODZ0QR95B600X2An9OJ3RfqoAXexTRVlTw%40sfdc.net.


Re: Exact historical monthly search volume from KeywordPlanIdeaService?

2021-04-08 Thread 'Joy Yu' via AdWords API and Google Ads API Forum
Hi Peter,

Is there a limit to how many keyword plans a Google Ads account can have? 

And the script I would have would: create a keyword plan, create a keyword 
plan campaign, create a keyword plan ad group, create a keyword plan ad 
group keyword, generate historical metrics.

Do each of these steps count as 1 operation to the daily 10,000 limit on 
basic accounts?

Thanks,

Joy

On Wednesday, April 7, 2021 at 10:25:05 PM UTC-4 adsapiforumadvisor wrote:

> Hi Joy,
>
> Unfortunately, a keyword plan would be required as mentioned in this 
> section 
> ,
>  
> when generating the (historical) metrics.
>
> You can opt to use the BatchJobService 
>  
> for creating keyword plans in bulk, since the KeywordPlanOperation 
> 
>  
> is included in the list of supported mutate operations 
> 
>  
> of this service.
>
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2EqKpN: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/d2b36483-7ff8-44a4-91f3-a67bd7567e31n%40googlegroups.com.


Re: Two offline_user_data_job's from one OfflineUserDataJob request

2021-04-08 Thread Roman Marakulin
Unfortunately, I can't reply privately: "you don't have permission to reply 
to author in this group" (I tried different ways to fix this, but it didn't 
work).
Can you write down to me directly?

Thank you

On Wednesday, April 7, 2021 at 6:56:41 PM UTC+3 adsapiforumadvisor wrote:

> Hi Roman,
>
> Thank you for reaching out. Could you please share the complete request 
> and response logs via the *Reply privately to author* option for us to 
> further investigate?
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2EqVui: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/9908d0bc-e3de-482b-b54d-5506976b5a27n%40googlegroups.com.


RE: `401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. Could you please share the complete request and 
response logs via the Reply privately to author option for us to further 
investigate?

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2FWoVG: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/gZenA0QR922O00qtiqQDb4RC-RJdz-6E5QOQ%40sfdc.net.


Error occurred during parsing: Fail to push the limit

2021-04-08 Thread Sebastian Offers
Hello maybe anyone has an idea whats wrong.

I got the Error: *Error occurred during parsing: Fail to push the limit*

This error is since i updated from v2 to v6. 

My System

   - "php": ">=7.3",
   - "google/gax": "^1.7.0",
   - "grpc/grpc": "^1.36.0",
   - "google/protobuf": "^3.15.0",
   - "monolog/monolog": "^2.0"

The only information that i found is which function give probably the error.

https://github.com/protocolbuffers/protobuf-php/blob/master/src/Google/Protobuf/Internal/CodedInputStream.php#L340

The Error comes if i try in the code link the Manager account with the 
client.

The function looks like following:

 class LinkManagerToClient {

const MANAGER_CUSTOMER_ID = MANAGER_CUSTOMER_ID;
const CUSTOMER_ID = CUSTOMER_ID;
const PAGE_SIZE = 50;

public static function main() {

  $options = (new ArgumentParser())->parseCommandArguments([
ArgumentNames::MANAGER_CUSTOMER_ID => GetOpt::REQUIRED_ARGUMENT,
ArgumentNames::CUSTOMER_ID => GetOpt::REQUIRED_ARGUMENT
  ]);

  try {
self::runExample(
  $options[ArgumentNames::MANAGER_CUSTOMER_ID] ?: 
self::MANAGER_CUSTOMER_ID,
  $options[ArgumentNames::CUSTOMER_ID] ?: self::CUSTOMER_ID
);
  } catch (GoogleAdsException $googleAdsException) {
printf(
  "Request with ID '%s' has failed.%sGoogle Ads failure details:%s",
  $googleAdsException->getRequestId(),
  PHP_EOL,
  PHP_EOL
);
foreach ($googleAdsException->getGoogleAdsFailure()->getErrors() as 
$error) {
  printf(
"\t%s: %s%s",
$error->getErrorCode()->getErrorCode(),
$error->getMessage(),
PHP_EOL
  );
}
  } catch (ApiException $apiException) {
printf(
  "ApiException was thrown with message '%s'.%s",
  $apiException->getMessage(),
  PHP_EOL
);
  }

}

public static function runExample(int $managerCustomerId, int 
$clientCustomerId) {

  $customerClientLinkResourceName = 
self::createInvitation($managerCustomerId, $clientCustomerId);

  $managerLinkResourceName = 
self::getManagerLinkResourceName($managerCustomerId, $clientCustomerId, 
$customerClientLinkResourceName);

}

public static function createInvitation(int $managerCustomerId, int 
$clientCustomerId) {

  $googleAdsClient = self::createGoogleAdsClient($managerCustomerId);

  $customerClientLink = new CustomerClientLink([
'client_customer' => new StringValue(['value' => 
ResourceNames::forCustomer($clientCustomerId)]),
'status' => ManagerLinkStatus::PENDING
  ]);

  $customerClientLinkOperation = new CustomerClientLinkOperation();
  $customerClientLinkOperation->setCreate($customerClientLink);

  $customerClientLinkServiceClient = 
$googleAdsClient->getCustomerClientLinkServiceClient();
  $response = 
$customerClientLinkServiceClient->mutateCustomerClientLink($managerCustomerId, 
$customerClientLinkOperation);

  $customerClientLinkResourceName = 
$response->getResult()->getResourceName();

  return $customerClientLinkResourceName;

}

public static function getManagerLinkResourceName(int 
$managerCustomerId, int $clientCustomerId, string 
$customerClientLinkResourceName) {

  $googleAdsClient = self::createGoogleAdsClient($managerCustomerId);

  $query = "SELECT customer_client_link.manager_link_id FROM 
customer_client_link WHERE customer_client_link.resource_name = 
'$customerClientLinkResourceName'";

  $googleAdsServiceClient = 
$googleAdsClient->getGoogleAdsServiceClient();
  $response = $googleAdsServiceClient->search(
$managerCustomerId,
$query,
['pageSize' => self::PAGE_SIZE]
  );

  $managerLinkId = $response->getIterator()->current()
  ->getCustomerClientLink()
  ->getManagerLinkIdUnwrapped();
  $managerLinkResourceName = 
ResourceNames::forCustomerManagerLink($clientCustomerId, 
$managerCustomerId, $managerLinkId);

  return $managerLinkResourceName;

}

private static function createGoogleAdsClient(int $loginCustomerId) {

  try {

$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile()
->build();

  } catch (Exception $e) {

echo '3 Caught exception: ',  $e->getMessage(), "\n";

  }

  try {

return (new GoogleAdsClientBuilder())
->fromFile()
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId($loginCustomerId)
->build();

  } catch (Exception $e) {

  *  echo '4 Caught exception: ',  $e->getMessage(), "\n";*
// header("Location: 
$global_domain/?g_ads=error_ads_accountId=1");
exit;

  }

}

  }

Thanks a lot for help or any idea

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

RE: authorization_error: USER_PERMISSION_DENIED

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi,

My apologies for the delayed response.

If you want to regenerate the OAuth2 credentials and obtain a new refresh 
token, then you may refer to the following guides:
https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project
https://developers.google.com/google-ads/api/docs/first-call/refresh-token

Let me know if you have further questions and we will be happy to provide 
support.

Regards,

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


InvoiceService query help

2021-04-08 Thread Martin


Hi,

I have access to the Google Ads API for my MCC account and I am trying to 
query the InvoiceService and use the ListInvoicesRequest 

 
method to see the invoices for accounts under my MCC. I can successfully 
connect to the API and have run queries to get account information etc. 
However, I am seeing a 500 internal server error when querying the 
InvoiceService with ListInvoicesRequest method.

I think this is to do with the billing setup id I am using. I have access 
to the MCC account but not to individual ad accounts, do I need access to 
all accounts to be able to use this service? When I get the billing set up 
ids for my MCC account I only see one cancelled listed but there are ~90 in 
the UI. Are these linked to separate ad account and therefore different 
customer ids?

Or does my account need to be approved for using this service?

Any help on this would be much appreciated.

Thanks

-- 


Privileged/Confidential Information may be contained in this
message. If 
you are 

not the addressee indicated in this message (or responsible for 
delivery of the


message to such person), you may not copy or deliver this 
message to anyone. In


such case, you should destroy this message and 
kindly notify the sender by
reply 

email. Please advise immediately if you 
or your employer does not consent to
email 

for messages of this kind. 
Opinions, conclusions and other information in this 

message that do not 
relate to the official business of Group M Worldwide LLC
and/or 

other 
members of the GroupM group of companies shall be understood as neither
given 

nor endorsed by it. GroupM is the global media investment 
management arm of
WPP.

For more information on our business ethical 
standards and Corporate
Responsibility 

policies please refer to WPP's 
website at http://www.wpp.com/WPP/About/ 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8baf154e-4126-4130-aec7-2196105c7e2en%40googlegroups.com.


`401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-04-08 Thread bangkit soms
Hi, 
i have a error like this Client error: `POST 
https://oauth2.googleapis.com/token` resulted in a `401 Unauthorized` 
response: { "error": "unauthorized_client", "error_description": 
"Unauthorized" }. i don't know why got error because last time is working, 
and to im check i got this. im already try to refresh the refresh_token, 
reset the Client secret but its not working. could you like to help me 
please?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/db88ff3f-b49b-499f-95a5-98f4fee60c8dn%40googlegroups.com.


RE: My messages on the dev forum are ignored

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Jakub,

Thank you for the follow up. My apologies also for the inconvenience.

Please provide the following details via Reply privately to author option so 
that we can proceed with our investigation and to address the API related 
issue. If the Reply privately to author option is not available, the you can 
provide these details on this email alias googleadsapi-supp...@google.com 
instead for privacy purposes.

Customer ID
email address / user account that has access to the MCC account and used to 
generate Oauth2 credential
complete request and response logs with request ID generated on your end where 
we can see this error


Regards,

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


RE: Cannot access client's campaigns via API

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi Jakub,

My apologies for the delayed response. I can see that you've created a new 
forum thread for this concern. Let us continue the discussion there.

Regards,

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