Re: Setting up Google ADS API for the offline conversion upload service

2020-06-26 Thread Reketec
Hi Xiaoming,

Thank you for your answer.

In our case since we are using python I don´t think that the spelling 
affects us since we obtain conversion_action from customer_id and 
conversion_action_id:

https://developers.google.com/google-ads/api/docs/conversions/upload-clicks#python

Any other idea?

Best,

Pablo

El viernes, 19 de junio de 2020, 10:53:22 (UTC+2), Reketec escribió:
>
> Hi there,
>
> We are an online store that sells refurbished IT equipment and we use 
> Google Ads to promote our business and products. We only advertise for our 
> website and don’t manage ads for anyone else.
>
> When a client pay via bank transfer the only way to verify that conversion 
> is to wait for the money to arrive to our bank account. Then what we 
> normally do is confirm that quote manually and make it an order by 
> clicking   "Confirm" button in our backend. What we want to do is by means 
> of the offline conversion upload service, upload the conversion when 
> confirming the order.
>
> I´ve created as a Web application the following credentials:
>
>
>
>
>
> For the refresh token my developper run the python code in here 
> https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/authentication/generate_refresh_token.py
>  which 
> takes him to a link for granting access to My Ads API integration, he gave 
> me the link but when I try to open it it takes me here:
>
> Previously I have already had to create a Google Ads Manager account to 
> obtain the developers token (right now as a test account, but I have 
> applied for the basic Access here 
> https://services.google.com/fb/forms/newtoken/), and enabled in my 
> project the Google Ads API. ¿Should I enable in my project the Token 
> Service API also?
>
> ¿Any Idea of what might be happening?
>
> Best,
>
> Pablo
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a4fdd5e3-2bf4-4d53-8319-bd1d094204f9o%40googlegroups.com.


Cannot Create Customer

2020-06-26 Thread Radek Karkut
Hello there,
I'm working on Google Ads API and my goal is to create ads in behalf of my 
clients.
I have created oAuth authorisation and it works properly (I have access and 
refresh token).

It's possible that I misunderstand the principles so please correct me.

1. If I would like to create new Ad for my client I need to create new 
Customer, right?
2. How can I create new Customer on my client Account visible in my Account 
Manager?

I'm trying to create new Customer using below tutorial but error occurs:
https://developers.google.com/google-ads/api/docs/account-management/create-account

"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. 

3. How can I use login-customer-id if I didn't create Customer yet?

I'm looking forward for your help guys.
Best Regards.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/21cfc2d3-605c-4821-867f-0dbba1d90fcdo%40googlegroups.com.


Display Keyword Performance in Google Ads API

2020-06-26 Thread cv
Hi,

Which view I need to use to get Display Keyword Performence Report in 
Google Ads API?

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 
"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/a6223085-4bf3-4b79-93c7-0b35e5bef279o%40googlegroups.com.


RE: How to segment by conversion action name in Google Ads API?

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Dave,

Thank you for clarifying. Unfortunately, that layout is not available in the 
API. I have created a feature request on your behalf so please keep an eye on 
our Developer Blog for information on future releases.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5004Q219Phq: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/hXxM90QCJBGH00ZV8jFUiCQNGRIQqZcsJZkg%40sfdc.net.


Cross Account Click Conversion Upload

2020-06-26 Thread Pete Lavetsky (AdWords API Guru)
Hi All,

We're running into issues uploading ClickConversions to a ConversionAction.

Reading 
through 
https://developers.google.com/google-ads/api/docs/conversions/upload-clicks 
a couple times we've discovered that the Customer object of the account in 
question has a cross_account_conversion_tracking_id value set.

Question: What is that ID to be used for? Is it the ID of a resource name 
of a ConversionAction on the effective conversion tracking account?

When setting the ConversionAction attribute of the ClickConversion object 
what value should we be using? Creating a resourceName of our account CID 
and that cross_account_conversion_tracking_id value doesn't work.

Are we to use that cross_account_conversion_tracking_id value as an account 
CID and go query that new account for their ConversionActions?

Thanks
Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a00fafb9-ebae-4fa6-a3c1-f0a7e8af438fn%40googlegroups.com.


Re: All Conv. (by conv. time) - API Help

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Ashten,

Unfortunately Data studio is outside of my expertise and I cannot comment on 
whether this will also be available via Data Studio's Google Ads integration. 
However, you can reach out to the Data Studio Support Team and they will be 
more than happy to help you with your concern. Let me know if you have further 
questions.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q219Qvz: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/bf7m40QCJEXV00rzbrAbH3QFCE5hcjOCLG3A%40sfdc.net.


Search query report Google Ads API

2020-06-26 Thread cv
Hi,

I would like to get below 2 fields mentioned

https://developers.google.com/google-ads/api/docs/migration/reports#search_query_performance


KeywordId segments.keyword.ad_group_criterion
KeywordTextMatchingQuery segments.keyword.info.text

For this I have used search_term_view and try to get like this
$googleAdsRow->getSegments()->getKeyword()->getInfo(),
$googleAdsRow->getSegments()->getKeyword()->getAdGroupCriterionUnwrapped(),


But its not giving me the values.

Can I know how I can fetch same?

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 
"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/f6eb0008-538b-4028-a41a-1fd8d3ae6192o%40googlegroups.com.


Re: List of campaign attributes.

2020-06-26 Thread Etay Tchechanovski
Hey Joe,
Can you share the http request you've used here?
I'm not sure which endpoint url to use..

On Tuesday, March 12, 2019 at 5:34:33 PM UTC+2, Joe Stedman wrote:
>
> You know what, i figured it out.
> $"SELECT name,selectable,enum_values WHERE category = 'ATTRIBUTE'" gives 
> you all the attributes. Then you can just include the ones with a 
> ResourceName that contains "/campaign.".
> There's probably a better way though.
>
> On Tuesday, March 12, 2019 at 2:00:30 PM UTC, Joe Stedman wrote:
>>
>> Hi, I'm trying to get a list of attributes+metrics for the campaign 
>> artifact along with their enum values if applicable.
>> I managed to get the metrics using the GoogleAdsFieldService with this as 
>> the query:
>> "SELECT name, category, selectable, enum_values, filterable, sortable, 
>> selectable_with, data_type, is_repeated WHERE category IN 
>> ('METRIC','ATTRIBUTE') AND selectable_with CONTAINS ALL ('campaign')"
>>
>> This only returns the metrics, which i understand. What should I do to 
>> get the attributes?
>>
>> Thanks,
>> Joe
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5366f25b-9de1-49db-92bd-8ffe3cddf810o%40googlegroups.com.


RE: Cannot Create Customer

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Radek,

Thank you for reaching out. If your client already has a Google Ads account, 
then you should follow these instructions to link that account to yours. If 
they don't have an existing account, then you should create one on their behalf 
using the example you shared.

The login-customer-id field should be set to the client customer ID of the 
manager account (your existing account in this case).

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5004Q219d4e: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/KBmyU0QCJGVI00pVk1LG_STaeT6MB0bKQ81g%40sfdc.net.


Re: Geo Performance report returns LocationType=DONT_CARE

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Andrey,

Could you please reply privately to author the report query you provided in the 
report definition format? I need to see the date range for this query so the 
report definition should provide me everything I need.

Thanks,
Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q219LLK: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/CGCow0QCJI8U00hO3ybC6NRQabCMvn3b5XlQ%40sfdc.net.


RE: EntityCountLimitExceeded.ADGROUP_LIMIT of "TEXT_CREATIVES_PER_ADGROUP"

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Don,

Thank you for reaching out to us. Could you clarify if you have a question on 
this issue?

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q20VTqz: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/ZUe0c0QCJL5B00M0KthQWzSYOuljGsknGy-g%40sfdc.net.


Re: Add Conversion to Campaign using Adwords API

2020-06-26 Thread pradeep raju
Hi Nirmita,

Thank you for reply, but i did not find anything on how i can include a 
conversion to a campaign. We have an interface where users can create 
campaigns, and we also have interface where users can create conversion. We 
are using adwords api for both,
we would like to also give an interface where users can include/select 
conversion to a campaign. i see this is available in Google UI. Added an 
image for reference.
[image: conversion.JPG] 












Please let me know.

Thank You,
Pradeep Datla.

On Thursday, June 25, 2020 at 1:39:20 PM UTC-7, adsapiforumadvisor wrote:
>
> Hi Pradeep,
>
> Thanks for reaching out. With regards to your concern about adding 
> conversion to campaign in the AdWords API, you can use this guide 
> 
>  
> to set up conversion.
>
> Let me know if you have any questions.
>
> Thanks,
> Nirmita Patel Google Ads Team
>
> ref:_00D1U1174p._5004Q219S22: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/1108b2aa-db99-4077-875b-1eff437a5b2fo%40googlegroups.com.


RE: Setting up Google ADS API for the offline conversion upload service

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Pete and Pablo,

Thank you for reaching out. Could you please share the Conversion Action you 
were uploading and the complete request and response logs along with the client 
customer account you were uploading to via the Reply privately to author option 
for me to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q217n6H: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/kfG4Q0QCJL5V0072FWNlUaS6CM96NpD0TUow%40sfdc.net.


How to get an ad's url using Google Ads Api v201809

2020-06-26 Thread Alain Hua
Hello,

I am using this example : 
https://developers.google.com/adwords/api/docs/samples/php/basic-operations#get-expanded-text-ads-in-an-ad-group,
 
trying to get an url from an ad.

My selector looks like this : 
$selector->setFields(
['DisplayUrl', 'Url']
);

Those 2 fields are said to be filterable : 
https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201809-AdGroupAdService

My problem is when i am using $adGroupAd->getAd()->getUrls 
or $adGroupAd->getAd()->getDisplayUrl() (see the example above), it always 
return NULL for both fields.

I am sure that the ads that i m requesting on, have urls, so i dont 
understand why ?


Thanks in advance.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c8e55d55-5676-4eda-9b4d-7f1f6067e1ddn%40googlegroups.com.


RE: Display Keyword Performance in Google Ads API

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. You could query the keyword_view resource to fetch 
data corresponding to Keyword Performance Report.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q219dpV: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/1OoOe0QCJOM800lfcjL-ShSwGULbqUqqUK1w%40sfdc.net.


RE: Cross Account Click Conversion Upload

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Pete,

Thank you for reaching out. The cross_account_conversion_tracking_id is not 
something I'm familiar with. The resource name of the conversion action should 
be made with the client customer ID of the account and the ID of the conversion 
action as shown here. The only difference with cross-account conversions is 
that you will perform the upload to your manager account instead of a client 
account. You can find more information on cross-account conversions here. You 
can use the ConversionActionService to get the ID of the conversion action.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5004Q219eJx: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/FU_Jl0QCJOT2009VXkX5TrT7qDRX0m1x5wPQ%40sfdc.net.


Re: Google Ads API: "campaign.label" in SELECT query bugged in campaign?

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Rob,

This is a known bug that's preventing labels and metrics from being selected 
together. The team is actively working on a fix. I'll follow up here when 
there's a resolution, or if I have any additional questions for you.

Best,
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q20Xmh2: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/GIntR0QCJQD000VQWsW4AnTQGm9Ai7QGEZUQ%40sfdc.net.


How to create a Conversion Action Set using adwords api

2020-06-26 Thread pradeep raju
Hi

I see in Google UI that we can create a Conversion Tracker set and then use 
it to attach it to a campaign.


   1. How can i create a Conversion Action Set using adwords api
   2. How to retrieve list of available Conversion Action Sets so that i 
   can show it to user

[image: conversionset.JPG]


Thank You,
Pradeep Datla.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5681442b-9abf-46ac-861a-e73c386477eeo%40googlegroups.com.


Re: Cross Account Click Conversion Upload

2020-06-26 Thread Pete Lavetsky (AdWords API Guru)
Thanks Mitchell.

How are we to know which manager account to use? In this instance the 
client account has 3 active CustomerManagerLinks.

The ID in the cross_account_conversion_tracking_id is 9 digits, instead of 
an expected 10 for a CID

I can get the conversion actions via the ConversionActionService fine ... 
it's just uploading the click conversions is failing due to "This customer 
does not have an import conversion action that matches the conversion 
action provided., at conversions[0].conversion_action"

Pete

On Friday, June 26, 2020 at 2:03:27 PM UTC-4, adsapiforumadvisor wrote:
>
> Hi Pete,
>
> Thank you for reaching out. The cross_account_conversion_tracking_id is 
> not something I'm familiar with. The resource name of the conversion action 
> should be made with the client customer ID of the account and the ID of the 
> conversion action as shown here 
> .
>  
> The only difference with cross-account conversions is that you will perform 
> the upload to your manager account instead of a client account. You can 
> find more information on cross-account conversions here 
> .
>  
> You can use the ConversionActionService 
> 
>  
> to get the ID 
> 
>  
> of the conversion action.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q219eJx: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/2f08952a-cd81-45e5-bdfc-f088c204bb4bo%40googlegroups.com.


Re: Google Ads API: "campaign.label" in SELECT query bugged in campaign?

2020-06-26 Thread Rob Martin
Ok, thanks for the update.

*ROB MARTIN *- VP of Operations
Rank Crankers
m | *612-708-1793*
110 5th Ave SE, Suite 300 | Minneapolis, MN 55414


On Fri, Jun 26, 2020 at 1:36 PM Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> wrote:

> Hi Rob,
>
> This is a known bug that's preventing labels and metrics from being
> selected together. The team is actively working on a fix. I'll follow up
> here when there's a resolution, or if I have any additional questions for
> you.
>
> Best,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5004Q20Xmh2: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/CAPcy9sHVqOT-85NXZG%2B9ZExQb_r6%3DCEZZrJy-Zc4Entxx6nEQA%40mail.gmail.com.


RE: GAQL CLI

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Scott,

I am from the Google Ads API Team. I just wanted to check if you were having 
any issues with reporting or if it was strictly related to Benjamin's CLI tool. 
Let me know if you have any API related questions.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5004Q1zs6TF: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/6lZlX0QCJTBC00LLsvDFRTStKskvmNvR8oBA%40sfdc.net.


API GeoTargeting Not Working - But Shows Correct In ADW Account

2020-06-26 Thread Ads API App
Hi guys, I hope someone can help me, because myself & my entire company has 
now been set back a full year because of this. We have not signed up users 
because we found out today that while we "thought" that we were targeting 
United States only, we were in fact targeting mostly India, and all over 
the globe - just about everywhere "but" the USA.

Well, our service is really only interesting to US users, so we wasted a 
year of "terrible" turmoil - I ran out of money in San Francisco and had to 
move out of my apartment there to move back to NY abruptly and get on 
Disability because my Google API system was not working properly.

The only way I found out, was when I turned it on today, after even another 
"flurry" of upgrades to the website to try to get users, we were ready to 
test the system again live, and when I did I thought to myself..."let me 
celebrate by watching the REAL TIME visitors...and WHAMO...ALL FROM INDIA 
and a couple from Egypt, ect. This explains why all of our users for the 
past 6 months to a year have had names such as:
Arpit Soni, Shahnoor Ch, Sunil Badhala, (These are the names of our 
signups), They do not look like American names...
sonia mehta, Pavan Khaire, ANOOP YADAV, January 16, 2020: Rohan Singh...I 
should have caught this before, but all of the stress caused me "severe" 
debilitating Migraines that have been sending me to the Emergency Room, and 
I have not been able to think straight. "Thanks so much Google" for not 
providing a support phone number for Google Ads API - some of this may have 
been avoided if a Google expert was able to access my account a year ago.

I have been targeting "only" United States since I started using the Google 
Ads API, and using the 2840 geo code and it shows on my account as United 
States: 
https://www.dropbox.com/s/fnz90cprywirbg1/Screenshot%202020-06-26%2013.39.14.png?dl=0
 

However, all of our customer signups have been from India, and now that I 
looked at our real-time tracking, I see it is because all of the ads are 
only showing there in 
India!: 
https://www.dropbox.com/s/tq2d62yiat5vo0u/Screenshot%202020-06-26%2013.33.22.png?dl=0
 


Here is our GeoTargeting Code:
function addTargetLocation($session, $adWordsServices, $campaignId) {
$locations = [2840];

$campaignCriterionService = $adWordsServices->get($session, 
CampaignCriterionService::class);
if (empty($locations)) {
return;
}
//21144 : Hawaii, United States state nagative
//2850 : U.S. Virgin Islands region

$ExcludeLocations = [21144,2850];
foreach ($ExcludeLocations as $id) {
$location = new location();
$location->setId($id);
$campaignCriteria[] = new 
NegativeCampaignCriterion($campaignId, null, $location);
}

// $negativeCriterion = new NegativeCampaignCriterion();
// $negativeCriterion->setCampaignId($campaignId);
// $negativeCriterion->setCriterion($negativeKeyword);


foreach ($locations as $id) {
$location = new location();
$location->setId($id);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, 
$location);
}
$english = new Language();
$english->setId(1000);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, 
$english);

$operations = [];
foreach ($campaignCriteria as $campaignCriterion) {
$operation = new CampaignCriterionOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($campaignCriterion);
$operations[] = $operation;
}
try {
$result = $campaignCriterionService->mutate($operations);
foreach ($result->getValue() as $campaignCriterion) {
printf(
"Campaign targeting criterion with ID %d and type 
'%s' was added.\n", $campaignCriterion->getCriterion()->getId(), 
$campaignCriterion->getCriterion()->getType()
);
}
} catch (Exception $e) {
printf("An error has occurred3: %s\n", $e->getMessage());
}
}


Any help would be appreciated. Thank you, Joseph

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

RE: Search query report Google Ads API

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out.

For the keyword text, you can use: 
googleAdsRow.getSegments().getKeyword().getInfo().getText().getValue()

For the ad group criterion ID, you have to get the resource name by using the 
following: 
googleAdsRow.getSegments().getKeyword().getAdGroupCriterion().getValue()

As a tip for getting these values, you can print the whole GoogleAdsRow to the 
console and follow the printed hierarchy.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5004Q219gK4: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/VQXOw0QCJVOO00bdyI6_JbQ0G0R0Dx69_SLw%40sfdc.net.


RE: How to create a Conversion Action Set using adwords api

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Pradeep,

Thanks for reaching out. Please see my answer of your question.

Conversion action sets are currently not available in the API. You can follow 
our blog for any updates.
If you are trying to optimize a campaign for specific conversion actions, you 
can set them in the campaign's selectiveOptimization setting.

Let me know if you have any questions.

Thanks,
Nirmita Patel Google Ads Team
ref:_00D1U1174p._5004Q219lp1: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/fkCgh0QCJVYY00hPPcQqqsQFud6YOYkE6Wjg%40sfdc.net.


Re: Add Conversion to Campaign using Adwords API

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Pradeep,

Thanks for reaching out. With regards to your concern, you may use the 
SelectiveOptimization to set the optimization settings in the Google Ads UI.

Thanks,
Nirmita Patel Google Ads Team
ref:_00D1U1174p._5004Q219S22: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/JVO5i0QCJWV500rL0njlKLRYagPqGPtCEyag%40sfdc.net.


Geo Location Not Working

2020-06-26 Thread NEED SOME HELP
We found out today that while the ADW account showed that we were targeting 
United States only, we were in fact targeting mostly India, and all over 
the globe.

The only way I found out, was by watching the REAL TIME visitors...all from 
INDIA and a couple from Egypt, ect. This explains why all of our users for 
the past 6 months to a year have had names such as:
Arpit Soni, Shahnoor Ch, Sunil Badhala, sonia mehta, Pavan Khaire, ANOOP 
YADAV, January 16, 2020: Rohan Singh...I should have caught this before.

I have been targeting "only" United States since I started using the Google 
Ads API, and using the 2840 geo code and it shows on my account as United 
States: 
https://www.dropbox.com/s/fnz90cprywirbg1/Screenshot%202020-06-26%2013.39.14.png?dl=0
 

However, all of our customer signups have been from India, and now that I 
looked at our real-time tracking, I see it is because all of the ads are 
only showing there in 
India!: 
https://www.dropbox.com/s/tq2d62yiat5vo0u/Screenshot%202020-06-26%2013.33.22.png?dl=0
 


Here is our GeoTargeting Code:
function addTargetLocation($session, $adWordsServices, $campaignId) {
$locations = [2840];

$campaignCriterionService = $adWordsServices->get($session, 
CampaignCriterionService::class);
if (empty($locations)) {
return;
}
//21144 : Hawaii, United States state nagative
//2850 : U.S. Virgin Islands region

$ExcludeLocations = [21144,2850];
foreach ($ExcludeLocations as $id) {
$location = new location();
$location->setId($id);
$campaignCriteria[] = new 
NegativeCampaignCriterion($campaignId, null, $location);
}

// $negativeCriterion = new NegativeCampaignCriterion();
// $negativeCriterion->setCampaignId($campaignId);
// $negativeCriterion->setCriterion($negativeKeyword);


foreach ($locations as $id) {
$location = new location();
$location->setId($id);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, 
$location);
}
$english = new Language();
$english->setId(1000);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, 
$english);

$operations = [];
foreach ($campaignCriteria as $campaignCriterion) {
$operation = new CampaignCriterionOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($campaignCriterion);
$operations[] = $operation;
}
try {
$result = $campaignCriterionService->mutate($operations);
foreach ($result->getValue() as $campaignCriterion) {
printf(
"Campaign targeting criterion with ID %d and type 
'%s' was added.\n", $campaignCriterion->getCriterion()->getId(), 
$campaignCriterion->getCriterion()->getType()
);
}
} catch (Exception $e) {
printf("An error has occurred3: %s\n", $e->getMessage());
}
}


Any help would be appreciated. Thank you, Joseph

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d6dc7376-acd3-4254-97ef-51d66287660fo%40googlegroups.com.


RE: How to get an ad's url using Google Ads Api v201809

2020-06-26 Thread Google Ads API Forum Advisor Prod
Hi Alain,

Thank you for reaching out. Expanded text ads do not use url, displayUrl, 
finalAppUrls, or devicePreference and setting these fields on an expanded text 
ad will cause an error. This also means that you are not able to fetch these 
fields for an expanded text ad through the API. Please refer to this 
documentation for more information.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q219kLv: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/74s-m0QCJYF500EL1O62ghRKSJYP5lJwwVmQ%40sfdc.net.


How Do I Get A Refresh Token?

2020-06-26 Thread NEED SOME HELP
This code is not working:


http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

namespace Google\AdsApi\Examples\Auth;

require __DIR__ . '/../api/vendor/autoload.php';

use Google\Auth\CredentialsLoader;
use Google\Auth\OAuth2;

/**
 * Command line example that prompts you for the required OAuth2 credentials
 * to generate an offline refresh token for installed application flows.d
 *
 * You can then use this refresh token to generate access tokens to
 * authenticate against the ads API(s) you're using.
 */
class GetRefreshToken
{

/**
 * @var string the OAuth2 scope for the AdWords API
 * @see 
https://developers.google.com/adwords/api/docs/guides/authentication#scope
 */
const ADWORDS_API_SCOPE = 'https://www.googleapis.com/auth/adwords';

/**
 * @var string the OAuth2 scope for the Ad Manger API
 * @see 
https://developers.google.com/ad-manager/docs/authentication#scope
 */
const AD_MANAGER_API_SCOPE = 'https://www.googleapis.com/auth/dfp';

/**
 * @var string the Google OAuth2 authorization URI for OAuth2 requests
 * @see 
https://developers.google.com/identity/protocols/OAuth2InstalledApp#formingtheurl
 */
const AUTHORIZATION_URI = 
'https://accounts.google.com/o/oauth2/v2/auth';

/**
 * @var string the redirect URI for OAuth2 installed application flows
 * @see 
https://developers.google.com/identity/protocols/OAuth2InstalledApp#formingtheurl
 */
const REDIRECT_URI = 'https://www.gofishmarketplace.com/adw/token.php';

public static function main()
{
$PRODUCTS = [
['AdWords API', self::ADWORDS_API_SCOPE],
['Ad Manager API', self::AD_MANAGER_API_SCOPE],
['AdWords API and Ad Manager API', self::ADWORDS_API_SCOPE . ' '
. self::AD_MANAGER_API_SCOPE]
];

$stdin = fopen('php://stdin', 'r');


$clientId = 
"672650959136-6ouf55tvmmof8uv5cq5ap5qf92qvtiah.apps.googleusercontent.com";

   
$clientSecret = "cOt0cMDv1kFgU7org7o7SAQ5";

   
$api = 2;

if ($api === 2) {
print '[OPTIONAL] enter any additional OAuth2 scopes as a space 
'
. 'delimited string here (the AdWords API and Ad Manager 
API '
. 'scopes are already included): ';
} else {
printf(
'[OPTIONAL] enter any additional OAuth2 scopes as a space '
. 'delimited string here (the %s scope is already 
included): ',
$PRODUCTS[$api][0]
);
}
$scopes = $PRODUCTS[$api][1] ;//. ' ' . trim(fgets($stdin));

$oauth2 = new OAuth2(
[
'authorizationUri' => self::AUTHORIZATION_URI,
'redirectUri' => self::REDIRECT_URI,
'tokenCredentialUri' => 
CredentialsLoader::TOKEN_CREDENTIAL_URI,
'clientId' => $clientId,
'clientSecret' => $clientSecret,
'scope' => $scopes
]
);

//echo $oauth2->buildFullAuthorizationUri();exit;
//
$code = 
urldecode($_GET['code']);//"4/F0gGXN6S43cmsx6sAxAjlvEcu35rF1uvQH2ex_VPv8hb1vmGaxkPciDDOh5j5V4pAG_-X0nZ_JPdwjF6og0eANVQ";
   // fclose($stdin);
   // print "\n";

$oauth2->setCode($code);

$authToken = $oauth2->fetchAuthToken();

printf("Your refresh token is: %s\n\n", 
$authToken['refresh_token']);
printf(
"Copy the following lines to your 'adsapi_php.ini' file:\n"
. "clientId = \"%s\"\nclientSecret = \"%s\"\n"
. "refreshToken = \"%s\"\n",
$clientId,
$clientSecret,
$authToken['refresh_token']
);
}
}

GetRefreshToken::main();

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/acd06d8b-ce3b-4ee5-b78a-31d4a6cf8a

InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2020-06-26 Thread Corine Morin

I got the following error:

return self.process_reply(client, operation_obj, response) File 
"/home/tool/venv/tool/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 195, in process_reply return self.process_error(doc, operation) File 
"/home/tool/venv/tool/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 299, in process_error detail=fault_node.find("detail"), 
zeep.exceptions.Fault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro] 

While trying to delete a Feed
{'
operator': 'REMOVE',
 'operand': {
  'feedId': 99
  }
}

This used to work earlier today... is something wrong with Google servers 
in my regions?
We are location in Montreal, Quebec, Canada

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2c8e7ff0-40a2-4089-9971-a80fa364d1a7n%40googlegroups.com.


Re: Search query report Google Ads API

2020-06-26 Thread cv
Hello Mitchell,

Yes this helpful.

I need help how I can achieve this?
As a tip for getting these values, you can print the whole GoogleAdsRow to 
the console and follow the printed hierarchy.

-> when I tried to print GoogleAdsRow I am not getting any response and 
eventually it hangs. How I can see in console?


Thanks,



On Saturday, 27 June 2020 02:01:55 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out.
>
> For the keyword text, you can use: 
> googleAdsRow.getSegments().getKeyword().getInfo().getText().getValue()
>
> For the ad group criterion ID, you have to get the resource name by using 
> the 
> following: 
> googleAdsRow.getSegments().getKeyword().getAdGroupCriterion().getValue()
>
> As a tip for getting these values, you can print the whole GoogleAdsRow to 
> the console and follow the printed hierarchy.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q219gK4: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/b620dcd5-eb73-433b-93fd-64c0360f331fo%40googlegroups.com.


Re: Display Keyword Performance in Google Ads API

2020-06-26 Thread cv
Hi Xiaoming,


I am using keyword_view 
 resource 
to fetch data corresponding to Keyword Performance Report. But how I can 
differentiate between Display Keyword Performance Report and Keyword 
Performance Report?

Thanks

On Friday, 26 June 2020 23:29:23 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out. You could query the keyword_view 
>  
> resource to fetch data corresponding to Keyword Performance Report.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5004Q219dpV: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/207ad958-1244-4368-809a-2ac34def34ebo%40googlegroups.com.