Re: How to get the total cost of a campaign through api

2018-05-07 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Shan,

My apologies for the confusion. Currently the total campaign cost that you 
are seeing in the AdWords UI is not available via the AdWords API's 
TrafficEstimatorService 

 as 
there is currently no Cost field in the CampaignEstimate 

 object 
of the said service. However, you may still get the totalCost 

 value 
from the StatsEstimate 

 of 
the KeywordsEstimate 

 and PlatformCampaignEstimate 

.

To learn more about estimating traffic via the AdWords API, you may refer 
to this guide 

.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dea2d5b2-f3c8-4eee-9521-881d2a7ae781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Some campaigns not retrieved by API

2018-05-07 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Arthur,

To further investigate this, could you provide the complete report 
definition 

 when 
you are retrieving the campaigns? Also, could you provide the details of 
the two specific campaigns that you can't retrieve? Please reply via *Reply 
privately to author*.

Thanks and regards,
Luis
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ed124e6f-27a1-4e8b-85be-dd72a2f6a52d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: RATE_EXCEEDED without trigger on fetching reports

2018-05-07 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Jason,

The reason you are getting RATE_EXCEEDED 

 is 
because you might have exceeded the operational limit based on your access 
level or you had a system limit which means that your application makes a 
high number of requests per second on a single AdWords account. Please 
refer to this guide 

 for 
further details. It is also unusual that there is no trigger shown in your 
logs, because usually there is a reason provided for that error. Can you 
provide me the complete error logs or the SOAP request and response logs 
and your clientCustomerId via *Reply privately to author* so I can further 
investigate on this?

Regards,
Dannison
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/12930a66-9365-48d2-8ae3-906b7bdcf732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unauthorized_client error

2018-05-07 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Stephen,

The "401 Unauthorized" error means that the email address that you used in 
generating the OAuth2 credentials is not a valid user in your account, or 
it could be that there is something wrong in the generation of your OAuth2 
credentials itself (e.g. your refresh token is not matched with your client 
ID and secret). Also, the recommended authentication type for AdWords API 
is the "Installed application" type. See this guide 

 to 
know more on how to authenticate using this type. You don't need to 
authenticate as a service account as you only authenticate via this type if 
you have a G Suite domains  and your main goal 
is to impersonate as any user in your account.

Please try authenticating via the "Installed application" type again and 
let me know how it works. If you encounter any error, please provide the 
complete error logs as well as your clientCustomerId and the email address 
you used in the generation of your OAuth2 credentials via *Reply privately 
to author* option.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb5551d3-4335-4d4c-a78c-d322f7acb586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to add ads based on the name of adgroup

2018-05-07 Thread aditigsportsbet
Hi,

I want to add expanded text ads based on the name of adgroup. So, lets say 
if the adgroup name is "alphabets" and ad is something like "Amazing 
prices..sign up now"
How can I do that in Python?

For adding ads, do we need to add it using AdGroupAdService? 
the AdGroupAdService doesnt have the field selector as AdGroupName.

Thank you

Aditi

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/88dc2dca-66fe-4bc4-85f0-d54a902fc9b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RATE_EXCEEDED without trigger on fetching reports

2018-05-07 Thread Jason W
When pulling reports for a particular account, we're encountering 
RATE_EXCEEDED errors without any additional information about the trigger. 
These types of requests generally succeed for other clients, and we still 
get this error if we add delay between requests for the account in 
question, so we're unsure about whether or not we're hitting a QPS limit.

Example request:

Report request to: 
'https://adwords.google.com/api/adwords/reportdownload/v201802'
HTTP headers: [Content-Type: application/x-www-form-urlencoded, 
Authorization: Bearer [REDACTED], User-Agent: (AwApi-Ruby/1.1.1, 
Common-Ruby/1.0.1, GoogleAdsSavon/1.0.3, ruby/2.1.5, HTTPI/2.4.3, 
httpclient), clientCustomerId: [REDACTED], developerToken: [REDACTED]]
__rdxml=%3CreportDefinition%3E%3Cselector%3E%3Cfields%3EDate%3C%2Ffields%3E%3Cfields%3EAveragePosition%3C%2Ffields%3E%3Cfields%3EClicks%3C%2Ffields%3E%3Cfields%3EImpressions%3C%2Ffields%3E%3Cfields%3ECost%3C%2Ffields%3E%3Cfields%3EConversions%3C%2Ffields%3E%3Cfields%3ECampaignId%3C%2Ffields%3E%3Cfields%3EViewThroughConversions%3C%2Ffields%3E%3Cfields%3EConversionValue%3C%2Ffields%3E%3Cfields%3ENumOfflineImpressions%3C%2Ffields%3E%3Cfields%3ENumOfflineInteractions%3C%2Ffields%3E%3Cpredicates%3E%3Cfield%3ECampaignId%3C%2Ffield%3E%3Coperator%3EEQUALS%3C%2Foperator%3E%3Cvalues%3E1047146106%3C%2Fvalues%3E%3C%2Fpredicates%3E%3CdateRange%3E%3Cmin%3E20180416%3C%2Fmin%3E%3Cmax%3E20180422%3C%2Fmax%3E%3C%2FdateRange%3E%3C%2Fselector%3E%3CreportName%3ECAMPAIGN_PERFORMANCE_REPORT%3C%2FreportName%3E%3CreportType%3ECAMPAIGN_PERFORMANCE_REPORT%3C%2FreportType%3E%3CdateRangeType%3ECUSTOM_DATE%3C%2FdateRangeType%3E%3CdownloadFormat%3ECSV%3C%2FdownloadFormat%3E%3C%2FreportDefinition%3E
HTTPI /peer POST request to adwords.google.com (httpclient)
HTTP headers: [Content-Type: text/xml, Content-Encoding: gzip, Date: Mon, 
07 May 2018 22:21:31 GMT, Expires: Mon, 07 May 2018 22:21:31 GMT, 
Cache-Control: private, max-age=0, X-Content-Type-Options: nosniff, 
X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, Server: GSE, 
Alt-Svc: hq=":443"; ma=2592000; quic=51303433; quic=51303432; 
quic=51303431; quic=51303339; quic=51303335,quic=":443"; ma=2592000; 
v="43,42,41,39,35", Transfer-Encoding: chunked]
[ERROR] HTTP code: 400, error type: 'RateExceededError.RATE_EXCEEDED', 
trigger: '', field path: ''

Any information about why we might be seeing the rate limit error for this 
account would be greatly appreciated. I'm happy to provide additional 
information or logs as well.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/19ed5be9-5fd3-40f9-aea4-fa3f205d2684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Correct OAuth2 redirect URI ?

2018-05-07 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Stephan, 

If you were able to generate the OAuth token using the playground, you can 
update the same set in your adsapi_php.ini file and use them to make the 
API calls. You only need to update the credentials in the adsapi_php.ini 
file. Are you currently able to make API calls using the existing set of 
credentials? If so, you could continue using it. If you are not able to 
make successful API calls, could you share the error logs with me? You 
could use *reply privately to author* option while sharing the details.

This guide 

 on 
web application flow should be helpful for you. 

Thanks,
Sai Teja, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/899a0162-bd53-46b5-b2a2-f0d4b999cba7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords API 500 Internal Server Error in GetKeywordIdeas

2018-05-07 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Sang, 

I see that you have commented out the lines where SearchParameters 

 and 
Paging 

 
are being set in the selector (lines given below). Could you please 
un-comment those and try again? If you are still facing issues, could you 
please enable logging 
 and share the SOAP 
logs (request/response)? You could opt to *reply privately to author* while 
sharing the logs. 

$selector->setSearchParameters($searchParameters);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d7108cf3-9063-4fff-ac56-bc5c5eb71ab1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Some campaigns not retrieved by API

2018-05-07 Thread Arthur Balduini
Hello, I'm not an expert in Adwords, It's been 4 days since I started to 
learn and use it, so my question may be a little trivial, but I would 
really aprecciate some help!

I have two specific campaigns that are not being retrieved by the API when 
I try to generate a report using getSheetData. Although I can access the 
data from the UI, the reports generated by the UI  are missing this 
campaigns. The other campaigns are being retrieved as expected by the API, 
so I imagine it may not be a coding error.

Any suggestions and ideas would help me a lot! :)

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c0c22052-3d85-41ed-bfd9-92573c22a634%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unauthorized_client error

2018-05-07 Thread Stephen Barrett
 

I am getting this erro: Uncaught GuzzleHttp\Exception\ClientException: 
Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in 
a `401 Unauthorized` response. I have checked clientID, ClientSecret, and 
RefreshToken and they are all correct. 


I'm wondering if this has to do with the user flow I'm trying to create. 
What is the best web flow for a client to access their data through a 
manager? Would I have to set up a service account? I'm doing this all 
through my terminal first before moving it to my website. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fe8afbdd-5034-40a4-b3d7-f65d54ec7407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a unique id in Adwords API that I can use to solve for cost per customer & multi-channel attribution?

2018-05-07 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello, 

Please find my response below: 

Calculate the cost per acquisition of a customer 

Target CPA  is an 
automated bid strategy that sets bids to help get as many conversions as 
possible at the target cost per acquisition (CPA) you set. You can use 
CampaignService.get() 

 to 
retrieve the targetCpa 

 bids 
or CampaignService.mutate() 

 to 
override the existing bids. If your concern is different, could you please 
elaborate?

Tie clicks and impressions to a unique customer to be used for 
multi-channel attribution

The Click Performance Report 

 aggregates 
statistics at each click level and includes both valid and invalid clicks 
for the client customer Id specified in the request header. The ClickType 

 field 
is used to get the breakdown of how often the ad was served with that click 
type. Since ads can serve with multiple click types, impressions may be 
double counted and the totals may not be accurate. The clicks 

 metrics 
on the other hand will match the total number of clicks. If a user clicks 
on a particular ad impression multiple times, those clicks will be 
associated with only one GCLID and the landing page visits for the exact 
same impression also will share the same GCLID. You may refer to this blog 
post 

 for 
more information.

Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e796ce3-cc53-4954-a188-4ded40626e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords API 500 Internal Server Error in GetKeywordIdeas

2018-05-07 Thread Sang Jin Kim
Hi,

I am using Adwords API to manage many adwords accounts, and works fine for 
another apis(ex. Basic Operations like AddCampaigns, Reporting 
like Download a criteria performance report)

But when I try to get keyword ideas through API, I always receive '500 
Internal Server Error' result. I have same error even though I changed to 
other ClientCustomerId.


I'm in South Korea, and I use v201710 API version.

Below is my test script. 

Thanks in advance!


--

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\AdWords\v201710\Optimization;

require 
'/var/www/html/ad_manager/google_v201710/googleads/googleads-php-lib/vendor/autoload.php';

use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201710\cm\Language;
use Google\AdsApi\AdWords\v201710\cm\NetworkSetting;
use Google\AdsApi\AdWords\v201710\cm\Paging;
use Google\AdsApi\AdWords\v201710\o\AttributeType;
use Google\AdsApi\AdWords\v201710\o\IdeaType;
use Google\AdsApi\AdWords\v201710\o\LanguageSearchParameter;
use Google\AdsApi\AdWords\v201710\o\NetworkSearchParameter;
use Google\AdsApi\AdWords\v201710\o\RelatedToQuerySearchParameter;
use Google\AdsApi\AdWords\v201710\o\RequestType;
use Google\AdsApi\AdWords\v201710\o\SeedAdGroupIdSearchParameter;
use Google\AdsApi\AdWords\v201710\o\TargetingIdeaSelector;
use Google\AdsApi\AdWords\v201710\o\TargetingIdeaService;
use Google\AdsApi\Common\OAuth2TokenBuilder;
use Google\AdsApi\Common\Util\MapEntries;

/**
 * This example gets keyword ideas related to a seed keyword.
 */
class GetKeywordIdeas {

  // If you do not want to use an existing ad group to seed your request, 
you
  // can set this to null.
  const AD_GROUP_ID = null;

  const PAGE_LIMIT = 500;

  public static function runExample(AdWordsServices $adWordsServices, 
AdWordsSession $session, $adGroupId, $seed_keyword) {

$targetingIdeaService = $adWordsServices->get($session, 
TargetingIdeaService::class);

// Create selector.
$selector = new TargetingIdeaSelector();
$selector->setRequestType(RequestType::IDEAS);
$selector->setIdeaType(IdeaType::KEYWORD);
$selector->setRequestedAttributeTypes([
AttributeType::KEYWORD_TEXT,
AttributeType::SEARCH_VOLUME,
AttributeType::AVERAGE_CPC,
AttributeType::COMPETITION,
AttributeType::CATEGORY_PRODUCTS_AND_SERVICES
]);

$paging = new Paging();
$paging->setStartIndex(0);
$paging->setNumberResults(10);
$selector->setPaging($paging);

$searchParameters = [];
// Create related to query search parameter.
$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->setQueries([$seed_keyword]);
$searchParameters[] = $relatedToQuerySearchParameter;


 Create language search parameter (optional).
 The ID can be found in the documentation:
 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
//$languageParameter = new LanguageSearchParameter();
//$korean = new Language();
//$korean->setId(1012);
//$languageParameter->setLanguages([$korean]);
//$searchParameters[] = $languageParameter;


// Create network search parameter (optional).
$networkSetting = new NetworkSetting();
$networkSetting->setTargetGoogleSearch(true);
$networkSetting->setTargetSearchNetwork(false);
$networkSetting->setTargetContentNetwork(false);
$networkSetting->setTargetPartnerSearchNetwork(false);

$networkSearchParameter = new NetworkSearchParameter();
$networkSearchParameter->setNetworkSetting($networkSetting);
$searchParameters[] = $networkSearchParameter;


 Optional: Use an existing ad group to generate ideas.
//if (!empty($adGroupId)) {
  //$seedAdGroupIdSearchParameter = new SeedAdGroupIdSearchParameter();
  //$seedAdGroupIdSearchParameter->setAdGroupId($adGroupId);
  //$searchParameters[] = $seedAdGroupIdSearchParameter;
//}
//$selector->setSearchParameters($searchParameters);
//$selector->setPaging(new Paging(0, self::PAGE_LIMIT));



// Get keyword ideas.
$page = $targetingIdeaService->get($selector);


// Print out some information for each targeting idea.
$entries = $page->getEntries();

if ($entries !== null) {

  foreach ($entries as $targetingIdea) {

$data = MapEntries::toAssociativeArray($targetingIdea->getData());

$keyword = $data[AttributeType::KEYWORD_TEXT]->getValue();

$searchVolume = 

Re: DEVELOPER_TOKEN_NOT_APPROVED with Test mcc account

2018-05-07 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Quan,

It looks like the developer token being used to make the API call against a 
production account only has test access at the moment. Please note that you 
can only make API calls against production accounts using an approved 
developer token (either basic or standard access level). You can apply for 
basic access for the developer token using this form 
. Once you submit the form, 
the API compliance team will get back to the email address provided as API 
contact email in the AdWords API center within a business day. You can use 
an unapproved developer token to make API calls against a test account. Let 
me know if you have any further questions.

Regards,
Sai Teja, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9163925c-6a5a-4c76-8291-d86961a8b999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DEVELOPER_TOKEN_NOT_APPROVED with Test mcc account

2018-05-07 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Quan,

Re-posting after removing the sensitive information (client credentials and 
OAuth tokens) in your ads.properties screen shot. In the future, please 
redact any sensitive information before posting in the public forum. You 
could check the guidelines 
 here. 


[07 May 2018 15:22:05,574-requestInfoLogger:WARN:main] Request made: Service
> : CampaignService Method: get clientCustomerId:  URL: https://
> adwords.google.com/api/adwords/cm/v201802/CampaignService Request ID: 
> 00056b995d667b980a62ac056c0fe4cc ResponseTime(ms): 69 OperationsCount: 1 
> IsFault: true FaultMessage: 
> ApiException{applicationExceptionType=ApiException, 
> errors=[QuotaCheckError{apiErrorType=QuotaCheckError, 
> errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, 
> reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=}]}
> [07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP request:
> 
> http://schemas.xmlsoap.org/soap/envelope/
> " xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance;>
> 
> https://adwords.google.com/api/adwords/cm/v201802; soapenv:mustUnderstand=
> "0">
> *
> REDACTED
> unknown (AwApi-Java, AdWords-Axis/3.13.0, 
> Common-Java/3.13.0, Axis/1.4, Java/1.8.0_172, maven, SelectorBuilder, 
> SelectorField)
> false
> false
> 
> 
> 
> https://adwords.google.com/api/adwords/cm/v201802;>
> 
> Id
> 
> 
> 
> 
>
> [07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP response:
> 
> http://schemas.xmlsoap.org/soap/envelope/;>
> 
> 
> 00056b995d667b980a62ac056c0fe4cc
> CampaignService
> get
> 1
> 69
> 
> 
> 
> 
> soap:Client
> [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
> trigger:'null']
> 
> https://adwords.google.com/api/adwords/cm/v201802;>
> [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED 
> @ ; trigger:'null']
> ApiException<
> /ApplicationException.Type>
> http://www.w3.org/2001/XMLSchema-
> instance" xsi:type="QuotaCheckError">
> 
> null
> 
> QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
> QuotaCheckError
> DEVELOPER_TOKEN_NOT_APPROVED
> 
> 
> 
> 
> 
> 
>
> Request failed due to ApiException. Underlying ApiErrors:
>   Error 0: QuotaCheckError{apiErrorType=QuotaCheckError, 
> errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, 
> reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=}
>
> This is my terminal when run GetCampaign.class
>
> this is my ads.properties
>
> # OfflineCredentials authentication properties.
> # A refresh token can be acquired using the GetRefreshToken example.
> api.adwords.refreshToken=
> # If you do not have a client ID or secret, please create a project in the
> # Developers console. See the following link for more information:
> # https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0
> api.adwords.clientId=
> api.adwords.clientSecret= 
> # If you are using a service account, specify the path to the JSON
> # key file instead of using the above authentication properties.
> # api.adwords.jsonKeyFilePath=INSERT_PATH_TO_JSON_KEY_FILE_HERE
> # If you are using a service account, specify the email address of
> # the user account to impersonate. See
> # 
> https://developers.google.com/adwords/api/docs/guides/authentication#granting_impersonation_abilities
> # for details.
> # 
> api.adwords.serviceAccountUser=INSERT_SERVICE_ACCOUNT_USER_EMAIL_ADDRESS_HERE
>
> api.adwords.clientCustomerId=
> # Optional. Set a friendly application name identifier.
> # api.adwords.userAgent=INSERT_USERAGENT_HERE
> api.adwords.developerToken=
>
> api.adwords.isPartialFailure=false
>
>
>
>
>
Regards,
Sai Teja, AdWords API Team 

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

Re: INVALID_PROXIMITY_ADDRESS with address from

2018-05-07 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

Our team is aware of this issue and is currently looking into it. I will 
keep you posted on the updates.

Regards,
Dhanya, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f9373e27-e6be-4348-b2fb-30b7bd8c545f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: INVALID_PROXIMITY_ADDRESS occurs for valid data episodically

2018-05-07 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Dmitry,

Our team is aware of this issue and is currently looking into it. I will 
keep you posted on the updates.

Regards,
Dhanya, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/87bd648d-b264-428c-b36d-4b348f3dd73d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Correct OAuth2 redirect URI ?

2018-05-07 Thread Stephen Barrett
I'm getting stuck on setting up my OAuth2 Credentials. I have all the 
necessary information and have run GetRefreshToken.php but it keeps on 
saying that I don't have the correct Redirect URI. I'm on a mac and I 
haven't moved the Vendor directory anywhere else. What needs to be my 
redirect URI?

I tried going through the Playground route and successfully got a 
RefreshToken. I've placed it in the adsapi_php.ini file. Is there another 
file I need to put it in as well? My web flow is API Access on behalf of my 
clients.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/19acb139-1cf5-4b78-9c4d-285bff4446c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED error since 2018-04-12 on /api/adwords/ch/v201802/CustomerSyncService

2018-05-07 Thread 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello,

I apologize for the delay. I just wanted to follow up to say that this fix 
has been rolled out and you should no longer be encountering this error. 
Please let me know if you still so we can take another look if necessary.

Regards,
Mike, AdWords API Team

On Thursday, April 19, 2018 at 7:49:54 AM UTC-4, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> We have identified the cause of this and are in the process of rolling out 
> a fix. I would expect it to be live sometime early next week, but I will 
> post again here when I confirm that it is rolled out.
>
> Regards,
> Mike, AdWords API Team
>
> On Wednesday, April 18, 2018 at 3:18:13 PM UTC-4, vygintas.s...@adform.com 
> wrote:
>>
>> Hi,
>>
>> Do you have the ETA for this? We applied a temporary workaround, but this 
>> situation is getting a bit annoying.
>>
>> Ragards,
>> Vygintas
>>
>> On Tuesday, April 17, 2018 at 3:31:11 PM UTC+3, Michael Cloonan (AdWords 
>> API Team) wrote:
>>>
>>> Hello,
>>>
>>> Not yet. I will keep this thread posted with new information as it is 
>>> available.
>>>
>>> Regards,
>>> Mike, AdWords API Team
>>>
>>> On Tuesday, April 17, 2018 at 6:43:24 AM UTC-4, vygint...@adform.com 
>>> wrote:

 Hi,

 Any updates on this one?

 BR,
 Vygintas

 On Monday, April 16, 2018 at 3:44:58 PM UTC+3, Michael Cloonan (AdWords 
 API Team) wrote:
>
> Hello,
>
> We have gotten another report of this same issue, so I've escalated 
> for our team to take a look. I will let you know as soon as I have more 
> information to share.
>
> Regards,
> Mike, AdWords API Team
>
> On Sunday, April 15, 2018 at 11:59:33 PM UTC-4, Luis Xander Talag 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> There was a recent issue that was reported to our team regarding 
>> this. However, we've received information that the issue has now 
>> been resolved. Could you retry your requests and check if you still 
>> encountered the error on your end? If so, could you provide the latest 
>> SOAP 
>> request and response logs when the error occurs? Please reply via *Reply 
>> privately to author*.
>>
>> Thanks and regards,
>> Luis
>> AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7420ada3-1998-4c51-a393-197530992e17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the total cost of a campaign through api

2018-05-07 Thread Shan Pramuditha
Thank you for the help.I want this data from traffic estimater service. 
thanks

On Monday, May 7, 2018 at 11:47:07 AM UTC+5:30, Shan Pramuditha wrote:
>
>
> 
>
> I want to get the value bounded here.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7d84147a-0a4a-4c7a-b777-7a4d956cdb2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED - POST /api/adwords/ch/v201802/CustomerSyncService

2018-05-07 Thread 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello,

I've gotten word that this issue should be resolved now. Please let me know 
if you are still getting this type of failure so that we can take another 
look.

Regards,
Mike, AdWords API Team

On Monday, April 16, 2018 at 10:33:35 PM UTC-4, Chris wrote:
>
> Hi Luis - we are still encountering the error(s) on the majority of 
> our clientCustomerId values, I can send you some examples of failures if 
> you need them.
>
> On Sunday, April 15, 2018 at 10:59:02 PM UTC-5, Luis Xander Talag (AdWords 
> API Team) wrote:
>>
>> Hi Chris,
>>
>> Thanks for providing the logs. We've received an information that the 
>> issue I was referring to has now been resolved. Could you retry your 
>> requests and check if you still encounter the error on your end?
>>
>> Regards,
>> Luis
>> AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ecc029ec-33c0-4ceb-9d3f-ad066566f9dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: convert bid modifier to percentage

2018-05-07 Thread Ken Dan Tinio
Okay 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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/45111c13-8122-4d97-ad1b-9e3b0689e8f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set bid modifier to nothing?

2018-05-07 Thread Ken Dan Tinio
Works perfectly! :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/841d42d9-396f-4c2a-a1b8-c384dcda058e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CriterionError.INVALID_PROXIMITY_ADDRESS

2018-05-07 Thread Dmitry Karpuk
I use the version 201710 and about a week ago I started getting these 
errors.  

среда, 14 февраля 2018 г., 0:37:22 UTC+3 пользователь Dhanya Sundararaju 
(AdWords API Team) написал:
>
> Hi all, 
>
> The issue has been resolved. Could you please retry and reply if you are 
> still facing any issues?
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fee32ff1-72e3-4373-8eab-c15964b49c8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DEVELOPER_TOKEN_NOT_APPROVED with Test mcc account

2018-05-07 Thread Quân Lê Minh
[07 May 2018 15:22:05,574-requestInfoLogger:WARN:main] Request made: Service
: CampaignService Method: get clientCustomerId: 352-394-2633 URL: 
https://adwords.google.com/api/adwords/cm/v201802/CampaignService 
Request ID: 00056b995d667b980a62ac056c0fe4cc ResponseTime(ms): 69 
OperationsCount: 1 IsFault: true FaultMessage: 
ApiException{applicationExceptionType=ApiException, 
errors=[QuotaCheckError{apiErrorType=QuotaCheckError, 
errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, 
reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=}]}
[07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP request:

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance;>

https://adwords.google.com/api/adwords/cm/v201802; soapenv:mustUnderstand=
"0">
352-394-2633
REDACTED
unknown (AwApi-Java, AdWords-Axis/3.13.0, Common-
Java/3.13.0, Axis/1.4, Java/1.8.0_172, maven, SelectorBuilder, SelectorField
)
false
false



https://adwords.google.com/api/adwords/cm/v201802;>

Id





[07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP response:

http://schemas.xmlsoap.org/soap/envelope/;>


00056b995d667b980a62ac056c0fe4cc
CampaignService
get
1
69




soap:Client
[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:'null']

https://adwords.google.com/api/adwords/cm/v201802;>
[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ 
; trigger:'null']
ApiException<
/ApplicationException.Type>
http://www.w3.org/2001/XMLSchema-
instance" xsi:type="QuotaCheckError">

null

QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
QuotaCheckError
DEVELOPER_TOKEN_NOT_APPROVED







Request failed due to ApiException. Underlying ApiErrors:
  Error 0: QuotaCheckError{apiErrorType=QuotaCheckError, 
errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, 
reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=}

This is my terminal when run GetCampaign.class

this is my ads.properties

# OfflineCredentials authentication properties.
# A refresh token can be acquired using the GetRefreshToken example.
api.adwords.refreshToken=1/JZk-jcsMVUygjBPx_HwdE9ay54mtD4lMu-vnKJezqK0
# If you do not have a client ID or secret, please create a project in the
# Developers console. See the following link for more information:
# https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0
api.adwords.clientId=658906113846-blqpe27jsb7ekdltqh36pklhu5oq62fi.apps.googleusercontent.com
api.adwords.clientSecret=bLPcQ98DV_JK9I1ceOtZ2M4b 
# If you are using a service account, specify the path to the JSON
# key file instead of using the above authentication properties.
# api.adwords.jsonKeyFilePath=INSERT_PATH_TO_JSON_KEY_FILE_HERE
# If you are using a service account, specify the email address of
# the user account to impersonate. See
# 
https://developers.google.com/adwords/api/docs/guides/authentication#granting_impersonation_abilities
# for details.
# api.adwords.serviceAccountUser=INSERT_SERVICE_ACCOUNT_USER_EMAIL_ADDRESS_HERE

api.adwords.clientCustomerId=352-394-2633
# Optional. Set a friendly application name identifier.
# api.adwords.userAgent=INSERT_USERAGENT_HERE
api.adwords.developerToken=Cu6jcnRTGPx2atVJFhR8mw

api.adwords.isPartialFailure=false




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/649c61c6-27e3-4dcc-9e22-e11b641cbb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


INVALID_PROXIMITY_ADDRESS with address from

2018-05-07 Thread test . gmr . val
Hello,

I'm encountering error INVALID_PROXIMITY_ADDRESS even though I'm using 
addres provided in examples 
(https://developers.google.com/adwords/api/docs/guides/location-targeting)

Address myAddress = new Address();
address.setStreetAddress("38 avenue de l'Opéra");
address.setCityName("Paris");
address.setPostalCode("75002");
address.setCountryCode("FR");

// Use myAddress to create a Proximity object
Proximity proximity = new Proximity();
proximity.address = myAddress;
proximity.radiusDistanceUnits = ProximityDistanceUnits.KILOMETERS;
proximity.radiusInUnits = 10;

My application is in C#, co the code isn't exactly the same, but no matter what 
address I type I'm getting this error.

I'm using CampaignCriterionService with campaignId

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c9e8cf5-413f-48ef-b0a8-47c4272d7a8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a unique id in Adwords API that I can use to solve for cost per customer & multi-channel attribution?

2018-05-07 Thread 'Elizabeth Clark' via AdWords API and Google Ads API Forum
Hi, 

I'm trying to enrich my Adwords API data with my internal customer data. I 
want to do this for several reason: 

   1. Calculate the cost per acquisition of a customer 
   2. Tie clicks and impressions to a unique customer to be used for 
   multi-channel attribution

A few years ago I pulled in the doubleclick campaign manager api data to 
solve for the above two use cases across display and we used the userid 
(not perfect since based on cookies, but better than nothing), however I 
don't see anything like this in the Adwords API. Any suggestions on what 
data I can use to solve for the above two use cases? 

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7fc7d7cf-958d-489b-8815-c3fd84b7a83a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


INVALID_PROXIMITY_ADDRESS occurs for valid data episodically

2018-05-07 Thread Dmitry Karpuk
I use the version 201710 and about a week ago I started getting 
errors CriterionError.INVALID_PROXIMITY_ADDRESS. I have some address 
and sometimes it works for it correctly, and sometimes I get this 
error. What is going on? It does seem as bug on your side.

http://schemas.xmlsoap.org/soap/envelope/;>

https://adwords.google.com/api/adwords/cm/v201710;>
00056b996898a9c80a3713077f03c18b
CampaignCriterionService
mutate
2
113




soap:Client
[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address, 
CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[1].operand.criterion.address]

https://adwords.google.com/api/adwords/cm/v201710;>
[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address, 
CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[1].operand.criterion.address]

ApiException
http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="CriterionError">

operations[0].operand.criterion.address

operations
0


operand


criterion


address



CriterionError.INVALID_PROXIMITY_ADDRESS
CriterionError
INVALID_PROXIMITY_ADDRESS

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="CriterionError">

operations[1].operand.criterion.address

operations
1


operand


criterion


address



CriterionError.INVALID_PROXIMITY_ADDRESS
CriterionError
INVALID_PROXIMITY_ADDRESS







-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2bff66d4-dedf-4538-b798-f0e966dc233e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Исрользование API cлужбs BudgetOrderService

2018-05-07 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Maria,

My apologies as I can only provide support in English. To further 
investigate the issue, could you provide more details on the issue you are 
encountering with the AdWords API? Also, if possible, could you provide the 
complete SOAP request and response logs when you run the BudgetOrderService 
as well as your MCC ID? Please reply via *Reply privately to author*.

Thanks and regards,
Luis
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c70f7179-ac5c-422f-87ee-f74ddf247671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the total cost of a campaign through api

2018-05-07 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Shan,

You should be able to retrieve the said information by including the Cost 
field when you generate the Campaign Performance Report 

 as 
you can see in my below sample SELECT query and results from my test 
account :

Sample query :

*String query = "SELECT CampaignId, CampaignName, Cost FROM 
CAMPAIGN_PERFORMANCE_REPORT";*

Results :

*Campaign ID,Campaign,Cost*
*367020438,Interplanetary Cruise (Mars)#1460726846165,0*
*367027038,Interplanetary Cruise #1460729160735,0*
*368867478,Shoes Sale # 1461179448427,0*
*368871438,Shoes Sale # 1461180582528,0*
*641856392,Interplanetary Cruise banner 5 #1470898927628,0*
*661677735,Video campaign,0*
*678801542,Campaign 123,0*
*Total, --,0*

Since I am using a test account, the total Cost would be 0 as test account 
data do not generate statistics. Even so, you could see that the total is 
included in the generated report. Feel free to write back if you have any 
further clarificaitions.

Thanks and regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d5dc56d1-3760-43b0-9880-f0bd417ff297%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get the total cost of a campaign through api

2018-05-07 Thread Shan Pramuditha




I want to get the value bounded here.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/037ae39d-f2be-4f1f-898c-453a54111f5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Исрользование API cлужбs BudgetOrderService

2018-05-07 Thread Мария Арабельская
Приветсвую, уважаемые экперты.
Стоит задача реагировать на остаток бюджета аккаунта в рекламных компаниях. 
Создан MCC, туда включен пользовательский аккаунт. В рамках аккаунта MCC 
запускаю скрипт, который использует API BudgetOrderService . Но результата 
его работы не виден. Идем в документацию и видим 
https://developers.google.com/adwords/api/docs/guides/budget-order. Хотя на 
форуме 
https://www.ru.advertisercommunity.com/t5/Skripty-i-AdWords-API/Opredelenie-ostatka-byudzheta-akkaunta/m-p/381948#M1393
 
меня убеждают, что данная служба работает и с авансовым типом бюджета. 
Помогите разобраться и найти приемлемое решение.
Спасибо

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e87abd46-1c3a-4c40-b63b-58a67c918c48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.