Campaign Creation : Set campaign objective using Ads API

2021-05-21 Thread Aromal S
Hi, 

[image: Screenshot 2021-05-22 121901.jpg]

I want to select campaign Objective as Website traffic, and provide the 
website name . But I am not able to find any attributes of campaign object 
to add those details while creating campaigns using Google Ads API. Please 
help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8dd63b3d-a092-47ab-9cea-4d2f5c0814edn%40googlegroups.com.


Re: INVALID_TOKEN_HEADER, Trigger: New developers must use the Google Ads API

2021-05-21 Thread ecommerce powerweave
Hi Team,
Any update on this.

On Fri, May 21, 2021 at 6:19 PM ecommerce powerweave <
powerweaveecomme...@gmail.com> wrote:

> Hi Team,
>
> I've tried User authorization and generated the Refresh token. Next, I
> tried to fetch Campaign for AdWords API using 'OAuth 2.0 Client IDs'
> credentials and TestAccount details but its failing with the error
> 'INVALID_TOKEN_HEADER (Error: QuotaCheckError.INVALID_TOKEN_HEADER,
> FieldPath: Trigger: New developers must use the Google Ads API)
>
> The sequence of steps as follows:
> 1. Obtained credential details from https://console.cloud.google.com/apis.
>
> 2. Used above Client ID & Client secret credentials in
> 'AdWords.Examples.CSharp.OAuth.csproj'->web.config' .
>
> 3.Since there is no developer token available in test accounts hence
> created the developer token by signing in to the manager account and
> fetched the Developer and Customer token from the API Center (TOOLS > MORE
> TOOLS > API Center). Set these details on 'web.config' file as mentioned
> above in step 2.
>
> 4. Created Test Account for customer client and linked that to another
> account. Then added AD Campaign.
> 5. Tried to get the campaign using these details and got the error below:
> • Failed to get campaigns. Exception says "AdWordsApiException: Exception
> of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown.
> Customer passed in an invalid token in the header.. (Error:
> QuotaCheckError.INVALID_TOKEN_HEADER, FieldPath: Trigger: New developers
> must use the Google Ads API.) "
>
> Please advise on.
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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/8a92f365-7fb2-4266-826f-19eceb17d418n%40googlegroups.com
> 
> .
>

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


Error 400: redirect_uri_mismatch

2021-05-21 Thread Balaji Iyer
Hello,

I am trying to get Google AdWords data via API.

I have Get_your_refreshed_token.py and googleads.yaml file triggered from 
my local machine.
When i execute it, i get the following error message:

"The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be 
used by a Client ID for native application. It is not allowed for the WEB 
client type. You can create a Client ID for native application at 
https://console.developers.google.com/apis/credentials/oauthclient";

I tried that the same with a client id and secret id from a Native "Desktop 
app" for Application Type when I created OAuth Client ID.

But I am seeing the same issue.

After seeing the suggestion here 
: 
https://stackoverflow.com/questions/44040824/error-redirect-uri-mismatch-in-googe-adwords-integration
I added http://localhost for "Authorized JavaScript origins" in my ClientID 
for Web Application page, but that doesn't seem to fix the issue either.

Any suggestions on how I can get the refreshed token?

Thank you!


-- 
CONFIDENTIAL COMMUNICATION:  The information contained in this message 
should be considered as legally privileged and confidential information 
intended only for the use of the individual or entity named here in above.  
If the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution, or duplication of this 
transmission is strictly prohibited.  If you have received this 
communication in error, please notify us by telephone or e-mail 
immediately, return the original message to us and/or destroy all printed 
and electronic copies. 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dd434604-5664-49fe-873e-f571e69cc927n%40googlegroups.com.


Re: QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.How to check what the issue is?

2021-05-21 Thread Sergey Morozov
 Hello - 
Thank you, 05.11.2021 
This works with - https://developers.google.com/google-ads/api/docs/start 

пятница, 21 мая 2021 г. в 18:10:04 UTC+3, adsapiforumadvisor: 

> Hello - 
>
> Can you clarify when the developer token you used for these queries was 
> created? I'm looking into it, but it's possible that, since the AdWords 
> API deprecation notice was announced 
> ,
>  
> we've placed limitations on the usage of the AdWords API for new developer 
> tokens.
>
> Thanks,
> Ben Karl, Google Ads API Team
>
> ref:_00D1U1174p._5004Q2HCQwh: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/93e775f1-0fd0-4e80-b2f0-fd88e5c777f8n%40googlegroups.com.


RE: Setting Conversions to Campaigns - AdwordsAPI

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hello,

Thanks for reaching out. Can you please provide us with the complete request 
and response logs for this issue?

Thanks,
Matt
Google Ads API Team

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


RE: Placement exclusion lists API

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hi Bruce,

In order to create negative placement lists, you will need to use a few 
different services; the SharedSetService to create the lists, the 
SharedCriterionService to add placements to the list and finally the 
CampaignSharedSetService to apply these lists to campaigns. All of these 
services are detailed here, along with how to implement them. Please let me 
know if you have any issues.

Cheers,
Anthony

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


RE: Invalid argument

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hi Divyesh,

Thank you for bringing this issue to our attention. I would start by asking if 
you have looked over our documentation here . With that being said, would it 
also be possible to share via "Reply to author" button,  with the code for the 
campaign that you have as well as the call to it.

Also we would suggest looking at the args being passed into the call as it 
would look like one of them might not match up with what you have in the code 
or are expecting.

Regards,

William Pescherine
Google Ads API Team
ref:_00D1U1174p._5004Q2HCbyU: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/dVdxj0QTGWYM00SLbGR1EpRkyOntXd-PLX7A%40sfdc.net.


Re: Empty Error on Call Conversion Upload

2021-05-21 Thread Austin Pena
Thanks so much!

On Fri, May 21, 2021 at 9:46 AM Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> wrote:

> Hi Austin,
>
> Thank you for bringing this issue to our attention. I would first ask if
> you have looked into this section
> 
> about handling the partial error message as it talks about this
> specifically. Also would suggest to look into the checking of the empty
> response as shown here
> 
> . Also, it would look like you would need to pass in the caller_id into the
> def main as shown here
> 
> in this sample.
>
> Regards,
> [image: Google Logo]
> William Pescherine
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2HCYnn: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/CA%2BtyRWkoQP3CWxTedzfP1jn2vSQAYf8YVuyB4cf3j1Wi-LtSwA%40mail.gmail.com.


RE: Empty Error on Call Conversion Upload

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hi Austin,

Thank you for bringing this issue to our attention. I would first ask if you 
have looked into this section about handling the partial error message as it 
talks about this specifically. Also would suggest to look into the checking of 
the empty response as shown here . Also, it would look like you would need to 
pass in the caller_id into the def main as shown here in this sample.

Regards,

William Pescherine
Google Ads API Team
ref:_00D1U1174p._5004Q2HCYnn: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/rVlQK0QTGUM800RehYj00SQYm83wRLgRNHvQ%40sfdc.net.


Re: Update Campaign GeoTargetTypeSetting Failure with field has subfields

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hi Ting,

Thanks for clarifying your issue. As your inquiry is specific to the .NET 
client library, please reach out to the client library owners here on the .NET 
CL GitHub page.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2H9vXr: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/0g8620QTGTHH00HLF_0RhHTCeuVrXzml8bog%40sfdc.net.


RE: QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.How to check what the issue is?

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hello -

Can you clarify when the developer token you used for these queries was 
created? I'm looking into it, but it's possible that, since the AdWords API 
deprecation notice was announced, we've placed limitations on the usage of the 
AdWords API for new developer tokens.

Thanks,
Ben Karl, Google Ads API Team
ref:_00D1U1174p._5004Q2HCQwh: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/9SWYe0QTGQ4F00ul-7vvDLQQ64-M3KGicPPQ%40sfdc.net.


Re: Whitelist Google Ads Account for First-Party Data

2021-05-21 Thread Shane karp
Hi Matt - thank you for following up. We do not have a Google Ads rep, 
despite meeting the requirements laid out to have one. I've also been told 
there's no way to request one. If Google continues stonewalling access to 
the tools that makes Google Ads most impactful, I'm not sure my 
organization can continue to use the product. Let me know if you are able 
to support in any way. 

On Friday, May 21, 2021 at 10:18:25 AM UTC-4 adsapiforumadvisor wrote:

> Hi Shane,
>
> Thanks for reaching out. As mentioned in the Ads API Customer Match 
> documentation 
> ,
>  
> you must reach out to your Google Ads representative for more information 
> on this. 
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2HCSIu: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/f2ac0a62-927a-443b-9bf5-692433e10782n%40googlegroups.com.


RE: Whitelist Google Ads Account for First-Party Data

2021-05-21 Thread Google Ads API Forum Advisor Prod
Hi Shane,

Thanks for reaching out. As mentioned in the Ads API Customer Match 
documentation, you must reach out to your Google Ads representative for more 
information on this.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2HCSIu: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/e1l8_0QTGNQ500NHAZro-9T7qQyMhQn752mQ%40sfdc.net.


metrics.all_conversions_from_store_visit in campaign report

2021-05-21 Thread maria.r...@funnel.io
Hello support team,

We can see the metric "all_conversions_from_store_visit" in the "campaign" 
report in the Google Ads API but we can't fetch it since it's not allowed 
when "campaign" is specified in the FROM clause. Your documentation 

.

How should we then get "all_conversions_from_store_visit"? We have figured 
out that we can get it from the "extension_feed_item" report but we want it 
with "campaign" instead. 

Kind Regards,
Maria Ravander
Developer @ Funnel

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/70109c34-b861-494f-9740-8becfe861ce5n%40googlegroups.com.


INVALID_TOKEN_HEADER, Trigger: New developers must use the Google Ads API

2021-05-21 Thread ecommerce powerweave
Hi Team,

I've tried User authorization and generated the Refresh token. Next, I 
tried to fetch Campaign for AdWords API using 'OAuth 2.0 Client IDs' 
credentials and TestAccount details but its failing with the error 
'INVALID_TOKEN_HEADER (Error: QuotaCheckError.INVALID_TOKEN_HEADER, 
FieldPath: Trigger: New developers must use the Google Ads API)

The sequence of steps as follows:
1. Obtained credential details from https://console.cloud.google.com/apis.

2. Used above Client ID & Client secret credentials in 
'AdWords.Examples.CSharp.OAuth.csproj'->web.config' .

3.Since there is no developer token available in test accounts hence 
created the developer token by signing in to the manager account and 
fetched the Developer and Customer token from the API Center (TOOLS > MORE 
TOOLS > API Center). Set these details on 'web.config' file as mentioned 
above in step 2.

4. Created Test Account for customer client and linked that to another 
account. Then added AD Campaign.
5. Tried to get the campaign using these details and got the error below:
• Failed to get campaigns. Exception says "AdWordsApiException: Exception 
of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
Customer passed in an invalid token in the header.. (Error: 
QuotaCheckError.INVALID_TOKEN_HEADER, FieldPath: Trigger: New developers 
must use the Google Ads API.) "

Please advise on.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8a92f365-7fb2-4266-826f-19eceb17d418n%40googlegroups.com.


developer_token and refresh_token

2021-05-21 Thread Nayrouz Boussoffara
Hello,
Does the developer_token and refrech_token expire?
If yes is there a way to refresh it in my code? not manually

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4bb9b51d-3641-48aa-a2e0-ca43aa87e766n%40googlegroups.com.


[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.']

2021-05-21 Thread denis kolmer
Hi,
I just got my google Ads Api application approved, i followed all the steps 
to complete adsapi_php.ini.
I added the following in adseapi_php.ini

   - developerToken = "aaa"
   - clientCustomerId = "bbb"
   - clientId = "ccc"
   - clientSecret = "ddd"
   - refreshToken = "eee"
   
I'm using *https://github.com/googleads/googleads-php-lib* and the 
associated examples 
*https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWord*
s. 

Because I'm beginning, I will use the example file 
*Google\AdsApi\Examples\AdWords\v201809\Remarketing\UploadOfflineConversions.php
 
*to test if it works.

I updated the 4 constant at the top of the file with somes values then run 
the file through the command line.

I got the message *"[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New 
developers must use the Google Ads API.']"*

I did 
check 
https://developers.google.com/adwords/api/docs/common-errors#QuotaCheckError.INVALID_TOKEN_HEADER
 
but

   - Ensure that a developer token has been set and matches the value in 
   the AdWords API Center. --> verified 3 times
   - Ensure that the headers of the request are in the namespace 
   https://adwords.google.com/api/adwords/cm/{version}, where {version} is 
   replaced with the version of the API being used. --> the soap envelop 
   contains: https://adwords.google.com/api/adwords/cm/v201809
   
Bottom line, this message is very confusing, because I'm using the Google 
Ads Api, and I have the impression I'm following the required 
implementation.

Any thoughts on what I'm doing wrong? Or where should I look?
Thank you by advance.


The full output of my OfflineConversion request is 

[2021-05-21T10:33:48.820766+00:00] AW_SOAP.WARNING: clientCustomerId=bbb 
operations=1 service=OfflineConversionFeedService method=mutate 
responseTime=125 requestId=0005c2d49850eb440aa78ac610010a74 
server=adwords.google.com isFault=1 
faultMessage=[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New 
developers must use the Google Ads API.']
[2021-05-21T10:33:48.820933+00:00] AW_SOAP.NOTICE: POST 
/api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.3.21
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 950
Authorization: REDACTED


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809";>bbbREDACTEDunknown
 
(AwApi-PHP, googleads-php-lib/52.0.0, 
PHP/7.3.21)falsefalseADDtest_glid_01test-conv-shopify-v320210521
 
00 
America/Los_Angeles1

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Fri, 21 May 2021 10:33:47 GMT
Expires: Fri, 21 May 2021 10:33:47 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
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"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201809";>0005c2d49850eb440aa78ac610010a74OfflineConversionFeedServicemutate1125soap:Client[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ; trigger:'New developers must use the Google Ads 
API.']https://adwords.google.com/api/adwords/cm/v201809";>[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ; trigger:'New developers must use the Google Ads 
API.']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="QuotaCheckError">New developers 
must use the Google Ads 
API.QuotaCheckError.INVALID_TOKEN_HEADERQuotaCheckErrorINVALID_TOKEN_HEADER


Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use 
the Google Ads API.'] in 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:43
Stack trace:
#0 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(43):
 
ReflectionClass->newInstanceArgs(Array)
#1 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(203):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', 
Array)
#2 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(165):
 
Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201809\cm\OfflineConversionFeedService.php(92):
 
Google\AdsApi\Common\AdsSoapClient->__soap in 
C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php
 
on line 43

-- 
-- 
=~=~=

Getting error while fetching data using google ads api

2021-05-21 Thread 'Raunak Raj' via AdWords API and Google Ads API Forum
Hi

I am trying to get data from google ads account but facing the below issue:

AdWordsReportBadRequestError: Type: QuotaCheckError.INVALID_TOKEN_HEADER
Trigger: New developers must use the Google Ads API.
Field Path: None

We already have access , refresh and developer token and basic access level 
for our account. Before yesterday, it was working fine. Suddenly we are not 
able to get the data using same code and credentials and now getting the 
above error. 

Please let me know if you need anything else from us to resolve/understand 
the issue more clearly.

Thank you 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/905a75da-2e1b-46c2-90ff-c2d69bc69ad5n%40googlegroups.com.


Re: Reports with 0-impressions and a device filter

2021-05-21 Thread Léon Gersen
Hi Anthony,

Thanks for following up on this. I am aware that queries with segments will 
not include zero impression rows. In order to filter by device, however, 
this segment is required, while not desired.

This limitation blocks me in migration some reports from the AdWords API to 
the Google Ads API, such as:

- Keywords that had no clicks on desktop devices (select metrics.clicks, 
segments.device WHERE segments.device = 'DESKTOP' cannot be used, as this 
omits words without impressions).

Requesting this report was trivial in the AdWords API, but now requires 
making two queries, and manually intersecting the results.

-- Léon

On Wednesday, May 19, 2021 at 5:08:14 PM UTC+2 adsapiforumadvisor wrote:

> Hi Leon,
>
> With Google Ads API, anytime segments are added to a report query, it will 
> exclude any zero impression rows. More details can be found here 
> 
> .
>
> Regards,
> Anthony
>
> [image: Google Logo] 
> Anthony 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2HC1Hf: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/f33fcad3-f2cf-4f12-ba1c-3412a2073268n%40googlegroups.com.