Scam Ad Group

2023-05-05 Thread Sachin Bhatt
Hello Google, i have recently came in contact with a scammer and almost got 
saved , kindly help other to be aware of it. 

Webstie : https://www.mywifiexthelp.online/

kindly help it was running a google AdWords on a Brand name i.e Netgear.

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b56d4c65-3cd4-44ac-b576-837c15be5edcn%40googlegroups.com.


Encrypted Request Parameter giving error while calling Google API to generate Access token From Refresh Token

2023-02-10 Thread sachin gupta
Hello Team,

I am trying to generate the Access Token using Refresh token from Google 
Analytics API. The request which I am trying to send is encrypted using 
Python libraries. When I run the below code, I am getting below error:

*{'error': 'unsupported_grant_type', 'error_description':'Invalid 
grant_type: '}*

*Source Code:*


*Encrypted Request Parameter giving error while calling Google Api to 
generate Access token 
<https://stackoverflow.com/questions/75393505/post-request-to-google-analytics-api-with-encrypted-parameters-throws-invalid-gr?noredirect=1#comment133048026_75393505>*

When I run this code without encryption it works fine and I am able to 
retrieve the Access token from Refresh token.

I request to please take a look into it and help me to make it working.

Thanks,
Sachin

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b527be28-df63-4780-bda6-9d016ab969c9n%40googlegroups.com.


GoogleAdsCustomerId dimension value not coming from Google Analytics AdWords API

2022-02-28 Thread sachin gupta
Hi, 

I used the google analytical API to fetch the data for Adwords with metric 
- ***ga:impressions,ga:adClicks,ga:adCost,ga:users,ga:sessions and 
dimensions=ga:date,ga:adGroup,ga:adwordsCustomerID,ga:campaign, 
ga:keyword,ga:sourceMedium, ga:channelGrouping***

when I queried them all together, I am not able to fetch the 
"GoogleAdsCustomerId" dimension values. all values are coming as (not set).

though below combinations of Metrics and Dimensions are working fine

Adwords with metric - 
ga:impressions,ga:adClicks,ga:adCost,ga:users,ga:sessions and 
dimensions=ga:date,ga:adGroup,ga:adwordsCustomerID,ga:campaign.

What is the possible way to get the GoodleAdsCustomerId with all the 
required metric and dimensions - Highlighted Bold above? Please guide me. 

Thank you

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

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6e77c2ed-7871-4678-98e3-0a07d21722a2n%40googlegroups.com.


Test Account

2019-07-29 Thread Sachin Jindal
Hi,

I have created a test account , so how can i grant permissions to my test 
account of addCampaigns. Please reply ASAP.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ef3cbb75-6698-4d9d-ba58-7dfd580cc674%40googlegroups.com.


Request ID

2018-05-31 Thread Sachin Sudarshana
Hi, 

I'm using python to upload Customer lists to our Adwords Account using the 
mutate members function of  AdWordsUserListService.

I need the Request ID of the API call to talk to our reps at Google. 
I have turned on the logging for the script at the lowest level, i.e. the 
DEBUG level. But I can't seem to find the ID in the logs. 

Is there a way to retrieve the Request ID of the API call?

Thank you,
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3953378d-5ac1-4c95-93aa-48e0e970cde9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Limit on Email addresses upload using AdWordsUserListService

2018-05-09 Thread Sachin Sudarshana
Hi,

I'm trying to use the API (v201802) to upload email addresses from a csv 
(crmbasedUserList) to a Customer List using the mutate members function of  
AdWordsUserListService.

I read in an earlier ( old) post in this is forum that 
"You can add a maximum of 10, 000 email addresses for each user list"

Can anyone confirm if this is still true please? 

Thank you,
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f796978d-4a0f-4114-a919-575813e4cff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Shopping Performance Report - All Items

2017-08-18 Thread Sachin Sudarshana
Hi,

I'm trying to download the Shopping Performance report via the API(v201708)

I was looking to download all the ItemId's in our feed, but it looks like 
this report only downloads items that have Conversion Value. i.e. 
AllConversionValue > 0 

Is this a limitation to the API or would there be a workaround to it? 

Any help is greatly appreciated!

Thank you,
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/0d107ada-12f6-4dd5-a206-dfd35a4dcbd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: RateExceededError.RATE_EXCEEDED

2017-06-30 Thread Sachin Kumar
Hello,

We are not making that much of request at a time as we have only 1 user who 
access the account.

 Before last 2 days it was working normally,this error is caused in last 2 days.

I have 5-6 account connected in MCC account and only admin access this. Means 
there is no chance to make 1 requests.

Yes,we will apply for standard access but let me know if any other fact can 
cause this error.


Regards
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/f5f71ec4-65f5-4ec7-8396-640bdc11f4a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RateExceededError.RATE_EXCEEDED

2017-06-30 Thread Sachin Kumar
Hello Team.


I am using adwords php api v201609.

>From last 2 days I am facing the following error:

*Fatal error*: Uncaught exception 'ReportDownloadException' with message 
'Report download failed. Underlying errors are Type = 
'RateExceededError.RATE_EXCEEDED', Trigger = 'Basic Access Daily Reporting 
Quota', FieldPath = ''. ' in 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/Util/v201609/ReportUtilsDelegate.php:175
 
Stack trace: #0 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/Util/v201609/ReportUtilsDelegate.php(79):
 
ReportUtilsDelegate::DownloadReportFromUrl('https://adwords...', Array, 
Array, '/home/bergstrom...', NULL) #1 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/Util/v201609/ReportUtils.php(83):
 
ReportUtilsDelegate::DownloadReport(Object(ReportDefinition), 
'/home/bergstrom...', Object(AdWordsUser), Array, NULL) #2 
/home/bergstromdev/public_html/lib/Adwords.class.php(334): 
ReportUtils->DownloadReport(Object(ReportDefinition), '/home/bergstrom...', 
Object(AdWordsUser), Array) #3 
/home/bergstromdev/public_html/boostwords.php(185): 
Adwords->getCampaignStats(Object(AdWordsUser), '/home/bergstrom in 
*/home/bergstromdev/public_html/Google/Api/Ads/AdWords/Util/v201609/ReportUtilsDelegate.php*
 
on line 


*175*The Adwords->getCampaignStats(Object(AdWordsUser); has following code:

$selector->dateRange = new DateRange($startDate, $endDate);

$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = 'Reports#' . uniqid();

$reportDefinition->dateRangeType = 'CUSTOM_DATE';   

$reportDefinition->reportType = $performanceReportType;
$reportDefinition->downloadFormat = 'CSV';
// Set additional options.
$options = array('version' => ADWORDS_VERSION);
   
$reportUtils = new ReportUtils();
$reportUtils->DownloadReport($reportDefinition, $filePath, $user, 
$options);


Please reply how to resolve this error.


Regards
Sachin





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/6ecb0151-7e5f-4455-adf6-3c5bab8145cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to set costperconversion for a campaign

2017-02-11 Thread Sachin Kumar
Hello Team,

I want to set costperconversion for a campaign using adwords php 
api.Suggest how to set this using php api? 

Kindly provide some sample peice of code.


Regards
Sachin





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/619f91e5-cdea-4b72-b26d-87b611aeb741%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Customer Id with username and password

2017-02-04 Thread Sachin Kumar
Hello Shwetha,

Thank you for your reply.

I successfully authenticate the request and get users email/name etc. but 
not get "Customer Id". This is the user's data as response which I got:

Array
(
[id] => **
[email] => *@gmail.com
[verified_email] => 1
[name] => Sachin Kumar
[given_name] => Sachin
[family_name] => Kumar
[link] => https://plus.google.com/**
[picture] => 
https://lh4.googleusercontent.com/-CxjPiLZwnPM/AAI/ALI/QMgIXPAnqng/photo.jpg
[gender] => male
[locale] => en
)


Here is the code to get this response:

createAuthUrl());
}
if (isset($_REQUEST['code'])) {
$objGoogleClient->authenticate();
$accessToken = $objGoogleClient->getAccessToken();
$_SESSION['token'] = $accessToken;
$_SESSION['googlePlusToken'] = $accessToken;
}

if (isset($_SESSION['token'])) {
$objGoogleClient->setAccessToken($_SESSION['token']);
}

if ($objGoogleClient->getAccessToken()) {

$gpUserData = $google_oauthV2->userinfo->get();
echo '';
    print_r($gpUserData);
die('huuu');
}



Can you plz provide some piece of code or suggestion?


Regards,
Sachin


On Friday, February 3, 2017 at 9:30:26 PM UTC+5:30, Shwetha Vastrad 
(AdWords API Team) wrote:
>
> Hi Sachin,
>
> To retrieve the CustomerId using the account's username and password, you 
> need to follow these steps:
>
>1. Generate client ID and client secret by following the instructions 
>provided here 
>
> <https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret>.
>  
>Once you have the OAuth2 credentials, you need to generate the refresh 
>token using any of the client libraries 
>
> <https://developers.google.com/adwords/api/docs/guides/authentication#configure_and_use_a_client_library>
>. 
>2. Use CustomerService.getCustomers() 
>
> <https://developers.google.com/adwords/api/docs/reference/v201609/CustomerService#getcustomers>
>  method 
>without setting the clientCustomerId 
>
> <https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers>
>  header 
>along with the credentials generated. The response will contain the 
> details 
>of the authenticated account. 
>
> Regards,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/31d33b01-6511-4f70-b48a-03e93858cc03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get Customer Id with username and password

2017-02-03 Thread Sachin Kumar
Hello Team,

Object: To get customer Id with the help of adwords account's username and 
password.

I have user's adwords account username and password. Now I want to get 
customer Id related to this username and password and then add this 
customer Id to mcc account.


Kindly suggest a way or snippet of code to achieve this.


Regards
Sachin
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/daa86436-c6b8-4776-aa2e-9b850a6c96bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to set bid of ecommerce products

2016-12-28 Thread Sachin Kumar
Hello Team,


We are getting ecommerce products through "PRODUCT PARTITION REPORT" report 
type.  There is a column 'Id' which is the criterion id of the that 
object(product). We just want to set bids on the basis of that id for that 
product. Can you please help us how to implement this using php library?




Thanks & Regards
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/d503b3a8-29d2-472c-acba-d701075eb5db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to add/set Income Tier of a particular Location

2016-12-19 Thread Sachin Kumar
Hello Team,

I want to add/set particular "location's Income Tier". To achieve this I am 
using this code:

// Get the service, which loads the required classes.

$clientId = (float) $clientid; //correct Client Id
$campaignId = (float) $campaignId; // correct campaignId
$location = (float) $location; // Correct locationId
$tier = 'TIER_1';
   


$user->SetClientCustomerId($clientId);
$campaignCriterionService = 
$user->GetService('CampaignCriterionService', ADWORDS_VERSION);

$campaignCriteria = array();


// Location Groups criteria. These represent targeting by household 
income
// or places of interest. The IDs can be found in the documentation 
or
// retrieved with the LocationCriterionService.

// Tiers are numbered 1-10, and represent 10% segments of earners.
// For example, TIER_1 is the top 10%, TIER_2 is the 80-90%, etc.
// Tiers 6 through 10 are grouped into TIER_6_TO_10.
// Other valid options: AIRPORT, UNIVERSITY.
$tier = new IncomeOperand($tier);
$Loc = new GeoTargetOperand(array($location)); // Miami, FL
$firstGroup = new LocationGroups();
$firstGroup->matchingFunction = new FeedFunction('AND', $tier, 
$Loc);
$campaignCriteria[] = new CampaignCriterion($campaignId, null, 
$firstGroup);
/*
if ($locationFeedId !== null) {
// Distance targeting. Area of 10 miles around targets above.
$radius = new ConstantOperand();
$radius->type = 'DOUBLE';
$radius->unit = 'MILES';
$radius->doubleValue = 10.0;
$distance = new LocationExtensionOperand($radius);
$secondGroup = new LocationGroups();
$secondGroup->feedId = intval($locationFeedId);
$secondGroup->matchingFunction = new FeedFunction('IDENTITY', 
$distance);
$campaignCriteria[] =
new CampaignCriterion($campaignId, null, $secondGroup);
}
*/
// Create operations.
$operations = array();
foreach ($campaignCriteria as $campaignCriterion) {
/* echo '';
print_r($campaignCriterion);die(); */

$operations[] = new 
CampaignCriterionOperation($campaignCriterion, 'ADD');
}

/* // Add a negative campaign criterion.
$negativeKeyword = new Keyword();
$negativeKeyword->text = 'jupiter cruise';
$negativeKeyword->matchType = 'BROAD';
$negativeCriterion = new NegativeCampaignCriterion();
$negativeCriterion->campaignId = $campaignId;
$negativeCriterion->criterion = $negativeKeyword; 

$operations[] = new CampaignCriterionOperation($negativeCriterion, 
'ADD');
*/


// Make the mutate request.
return $result = $campaignCriterionService->mutate($operations);


But this code giving me following error: 


Fatal error:  Uncaught SoapFault exception: [soap:Server] 
[CriterionError.CANNOT_TARGET_CRITERION
 @ operations[0].operand.criterion.matchingFunction] in 
/home/bergstromdev/public_html/Google/Api/Ads
/Common/Lib/AdsSoapClient.php:216

I am not getting what it means and how to resolve this?

Please reply & guide me asap to resolve this error.


Thanks & Regards
Sachin Kumar

 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/fb0e01cb-e4e1-4986-8b77-53d1e5c4dbab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


LHS/RHS operand in matchingfuntion

2016-10-15 Thread Sachin Kumar
Hello Team,

Can you please help me in using lhs/rhs operand in matchingfunction in 
order to get details of locationgroup object like income tier etc. Right 
now though we are getting matchingfunction as null.

The response is like this:

Array
(
[0] => CampaignCriterion Object
(
[campaignId] => 194515594
[isNegative] => 
[criterion] => LocationGroups Object
(
[feedId] => 
[matchingFunction] => 
[id] => 263370580451
[type] => LOCATION_GROUPS
[CriterionType] => LocationGroups
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)

)

[bidModifier] => 
[baseCampaignId] => 
[forwardCompatibilityMap] => 
[CampaignCriterionType] => CampaignCriterion
[_parameterMap:CampaignCriterion:private] => Array
(
[CampaignCriterion.Type] => CampaignCriterionType
)

)
);

The function is like this:

public function GetCampaignTargetingCriteriaExample(AdWordsUser $user, 
$campaignId) {
// Get the service, which loads the required classes.
$campaignCriterionService =
$user->GetService('CampaignCriterionService', 'v201607');

// Create selector.
$selector = new Selector();
$selector->fields = array('Id', 'CriteriaType');

// Create predicates.
$selector->predicates[] =  new Predicate('CampaignId', 'IN', 
array($campaignId));
  
//$selector->predicates[] = new Predicate('CriteriaType', 'IN', 
 array('LANGUAGE', 'LOCATION', 'AGE_RANGE', 
'CARRIER','OPERATING_SYSTEM_VERSION', 'GENDER', 'PROXIMITY', 'PLATFORM'));
$selector->predicates[] = new Predicate('CriteriaType', 'IN',  
array('LOCATION_GROUPS'));

// Create paging controls.
$selector->paging = new Paging(0, 
AdWordsConstants::RECOMMENDED_PAGE_SIZE);

do {
// Make the get request.
$page = $campaignCriterionService->get($selector);

// Display results.
if (isset($page->entries)) {
return $page->entries;
  foreach ($page->entries as $campaignCriterion) {
printf("Campaign targeting criterion with ID 
'%s' and type '%s' was "
. "found.\n", 
$campaignCriterion->criterion->id,

$campaignCriterion->criterion->CriterionType);
  }
} else {
  print "No campaign targeting criteria were found.\n";
}

// Advance the paging index.
$selector->paging->startIndex += 
AdWordsConstants::RECOMMENDED_PAGE_SIZE;
} while ($page->totalNumEntries > 
$selector->paging->startIndex);
}


We just trying to find a way to use lhs/rhs operand inb proper way. Please 
help us with php code for this.


Thanks & Regards
Sachin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/ff702dbc-990d-4305-b283-6d100c90dda6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get campaigns targeted location group using api

2016-10-15 Thread Sachin Kumar
Hi Anil,

What is the function to get household income of geo location? Can you plz 
share your code?


Thanks & Regrads
Sachin

On Friday, June 17, 2016 at 3:53:41 PM UTC+5:30, Anil wrote:
>
> Hello,
>
> We have campaign where location group is targeted "* top 10% (US) 
> within United States".
> To get locations targeted via API we have used Campaign Criterion service 
> where we get this under location groups where only id is mentioned. 
> How can we get the actual group name like "top 10% (US) within United 
> States"?
>
> Below is the sample of API response :
>
> [criterion] => LocationGroups Object
> (
> [feedId] => 
> [matchingFunction] => FeedFunction Object
> (
> [operator] => AND
> [lhsOperand] => Array
> (
> [0] => IncomeOperand Object
> (
> [tier] => TIER_1
> [FunctionArgumentOperandType] => 
> IncomeOperand
> 
> [_parameterMap:FunctionArgumentOperand:private] => Array
> (
> 
> [FunctionArgumentOperand.Type] => FunctionArgumentOperandType
> )
>
> )
>
> )
>
> [rhsOperand] => Array
> (
> [0] => GeoTargetOperand Object
> (
> [locations] => Array
> (
> [0] => 2840
> )
>
> [FunctionArgumentOperandType] => 
> GeoTargetOperand
> 
> [_parameterMap:FunctionArgumentOperand:private] => Array
> (
> 
> [FunctionArgumentOperand.Type] => FunctionArgumentOperandType
> )
>
> )
>
> )
>
> [functionString] => AND()
> )
>
> [id] => 197664905835
> [type] => LOCATION_GROUPS
> [CriterionType] => LocationGroups
> [_parameterMap:Criterion:private] => Array
> (
> [Criterion.Type] => CriterionType
> )
>
> )
>
>
>
> Thanks
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/252a72cc-572b-4b1f-b451-a711ca6b2a99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ho to get household-income range along with other data(clicks,cpc etc.)

2016-09-24 Thread Sachin Kumar
Hello team,


I want to get househhold-income range(10-20%, 20-30% etc) along with other 
data(clicks,cpc etc.) . How can I do it in php ?


Kindly revert asap.


Thanks & Regards
Sachin Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/813b0019-af3b-4c3d-85d9-e1857d628deb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fatal Error: invalid_request

2016-09-01 Thread Sachin Kumar
I switched to php lib v201607 from v201603 and changed the oath crdentilas 
also still facing the same problem.

On Thursday, September 1, 2016 at 1:23:31 AM UTC+5:30, Nadine Sundquist 
(AdWords API Team) wrote:
>
> Hello Everyone,
>
> I just want to be sure this isn't related to any of the client libraries. 
> I see a lot of PHP on this thread. Did any of you recently pick up a new 
> version of the client library? If so, what language and what version? If 
> you're still using the same library that you were 2 weeks ago, then please 
> also reply back, so I can get confirmation that it is or is not possibly a 
> client library issue.
>
> Thanks,
> Nadine, AdWords API Team
>
> On Wednesday, August 31, 2016 at 3:07:59 PM UTC-4, Li Tan wrote:
>>
>> I upgraded to v201607.
>>>
>>
>> Only 1 out of every 5 requests work, the rest fail with the generic 
>> {"error": "invalid_request"} with no other details. 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/92a40738-76da-4e45-8fc8-df21ff6653c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fatal Error: invalid_request

2016-08-31 Thread Sachin Kumar
Hello Peter,

I have change the oath credentilas successfully and also changed the api 
library to (v201607) but still facing the same problem.

Is it at google server issues or what? Kindly revert back asap.


Thanks & Regards
Sachin Kumar


On Wednesday, August 31, 2016 at 4:19:05 PM UTC+5:30, Peter Oliquino wrote:
>
> Hi,
>
> I would suggest to migrate to our latest version (v201607 
> <https://googleadsdeveloper.blogspot.com/2016/07/announcing-v201607-of-adwords-api.html>)
>  
> and try regenerating your OAuth2 credentials through the setting up 
> OAuth2 authentication 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication>
>  and getting OAuth2 refresh tokens 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call#get_an_oauth2_refresh_token_and_configure_your_client>
>  guides. 
> If the issue persists, kindly *Reply privately to author* with your 
> Customer ID and SOAP request and response so I can have a better look of 
> the issue.
>
> Best regards,
> Peter
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/eda62c83-6361-4b5e-af59-439220ea0b15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CustomerService in v201607

2016-08-31 Thread Sachin Doshi
Also, is there any scenario in which case the call to 
CustomerService.getCustomers() can return null? 

Thanks,
-Sachin 

On Tuesday, 9 August 2016 05:10:31 UTC+5:30, Anthony Madrigal wrote:
>
> Hi Karan,
>
> If you set the client customer Id from the MCC account, getCustomers 
> should return all the customers under that account. However, if you do *not 
> *set the client customer Id from the MCC account, you will only have the 
> MCC account returned.
>
> This new method in the API will allow us to make future improvements 
> without having to change the API WSDL in the future.
>
> Please check our blog <http://googleadsdeveloper.blogspot.com/> for any 
> changes regarding this method.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/600ce770-a91f-47ae-b31b-80e96a72193c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fatal Error: invalid_request

2016-08-30 Thread Sachin Kumar
I am getting this error sice today morning. Earliear the app was working 
fine. Now I am not knowing why this error is occurring.


*Fatal error*: Uncaught exception 'OAuth2Exception' with message '{ "error" 
: "invalid_request" }' in 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php:119
 
Stack trace: #0 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(96):
 
SimpleOAuth2Handler->MakeRequest('https://account...', Array) #1 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Util/OAuth2Handler.php(116):
 
SimpleOAuth2Handler->RefreshAccessToken(Array) #2 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(452):
 
OAuth2Handler->GetOrRefreshAccessToken(Array) #3 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(199):
 
AdsSoapClient->GenerateHttpHeaders() #4 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/v201603/CampaignService.php(8048):
 
AdsSoapClient->__soapCall('get', Array) #5 
/home/bergstromdev/public_html/lib/Adwords.class.php(36): 
CampaignService->get(Object(Selector)) #6 
/home/bergstromdev/public_html/day_dev.php(81): Adwords->GetCampai in 
*/home/bergstromdev/public_html/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php*
 
on line 




*119I am using php library of version v201603. Kindly let me know what is 
wrong now with the app.Note:* If I refresh page multiple time them app 
returning data but at first call it generates this above mentioned fatal 
error. 

Kindly reply asap because the site is stopped.



Thanks & Regards
Sachin Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/c8ee43f7-1610-45ba-9abd-d083290f6e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to Group stats on the basisi of week days

2016-08-10 Thread Sachin Kumar
   
$reportDefinition->reportType = $performanceReportType;
$reportDefinition->downloadFormat = 'CSV';
// Set additional options.
$options = array('version' => ADWORDS_VERSION);
//print_r($reportDefinition);
//print_r($options);
//die();
ReportUtils::DownloadReport($reportDefinition, $filePath, 
$user, $options);
//printf("Report with name '%s' was downloaded to '%s'.\n", 
$reportDefinition->reportName, $filePath);

if(file_exists($filePath)) {
$result = $this->__parseAdwordsStats($filePath);
return end($result['body']);

} else {
return false;
}
}


Suggest a way to achieve the same.

Thanks & Regards
Sachin Kumar



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/55e41ec2-6ee4-40c6-9601-ded7dfdb7ad2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Change bid Modifier of keyword with broad match type

2016-08-08 Thread Sachin Kumar
Hello Team,

Goal: Change bid of keyword with  broad match type.


I have a keyword with broad match type i.e. '+ultrafiltration +filtration'. 
We want to modify the bid of this keyword but we are getting this error 
message 'Invalid id'.

My code is as follows for keyword bid modifier. please have a look and 
suggest me how to make it success for this keyword.


$user = new AdwordsUser();
$user->SetClientCustomerId($clientId); // ClientId
$adGroupCriterionService = 
$user->GetService('AdGroupCriterionService', ADWORDS_VERSION);

//echo '';print_r($data1);
$operations = array();
foreach($data1 as $k=>$v) {
$data = explode('=',$v);
//$data = explode('=',$data);
//$data[0]; // campaignId
//$data[1]; // keywordId
//data[2]; // adgroupId
//data[3]; //bid to set
//data[4]; //keywordName

$criterion = new Criterion();
$criterion->id = $data[1]; // KeywordId
   
// Create biddable ad group criterion.
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $data[2]; // adgroupId
$adGroupCriterion->criterion = new Criterion($data[1]);
   
$bid = new CpcBid();
//$bid->bid = new Money($bidNonMicro * 
AdWordsConstants::MICROS_PER_DOLLAR);
$bid->bid = new Money((float) $data[3]*100);
$biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
$biddingStrategyConfiguration->bids[] = $bid;

//echo "";
//print_r($biddingStrategyConfiguration);
//die();

$adGroupCriterion->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;

$operation = new AdGroupCriterionOperation();
$operation->operand = $adGroupCriterion;
$operation->operator = 'SET';

$operations[] = $operation;
}
//return $operation;
//$operations = array($operation);
//echo '';
//print_r($operations);
//die();

try{
$results = $adGroupCriterionService->mutate($operations);

/* echo '';
print_r($results);
die(); */
if (count($results->value)) {
return 1;
}else{
return 0;
    }
}catch(Exception $e){
// Error
return array('Exception Error');
}




Thank You.

Regards
Sachin Kumar




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/f11ee251-cf54-40e6-ad78-82467945915e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Login with client account under MCC account

2016-07-28 Thread Sachin Kumar
Hello Vishal,

Thank you for your reply.

In this mail you had mentioned that we need to used 9 digit CustomerId(in 
my case it showing 10 digit CustomerId. I used 
GetAccountHierarchy(AdWordsUser $user) method to get all customer Ids.) in 
order to access the campaign stats. But my client requirement is to get 
individual customer(except MCC account holder) loggedin into system with 
their emailId/password which they use to login into google adwords.

Is there a way to get customer login into the system with their adword 
credentials through api?



 -
 Thank you
Sachin Kumar





On Thursday, July 28, 2016 at 2:44:28 AM UTC+5:30, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi Sachin,
>
> Since you are able to log in to the API using the MCC account, all you 
> need to do to access a client account is make the following changes in the 
> properties file:
>
>1. Change the value of the property clientCustomerId to the 9 digit 
>Client ID (instead of MCC ID).
>
> Please note that the developer token value would remain the same. 
>
> Hope this information helps. If not, could you please provide me with any 
> error messages / screenshots / SOAP XML logs to help me understand the 
> problem better? Please click on *Reply privately to author *when 
> responding.
>
> Regards,
> Vishal, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/deaef111-201a-41c6-ab65-b913ac8111de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Login with client account under MCC account

2016-07-27 Thread Sachin Kumar
Hello Team,

Goal: To login with client account and see this account data in adwords.


I am able to login and process all data when login with MCC account. I want 
to login with client account to show data of this account only. 

E.g: Under MCC account we have many users account. I want to login with 
these user's account so that data of these users could be shown.

I am using php adwords library of version 201603.

Kindly guide me how I can achieve this. 


Thanks & Regards

Sachin Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/59e3f061-adf3-4a75-ab4f-02c81c92ce8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Set defferent bidModifier for different time slot

2016-07-25 Thread Sachin Kumar
Hello Peter,

Thank you very much for the link.

I want dayOfWeek using CampaignCriterionService. the code is as:
// Create selector.
$selector = new Selector();
$selector->fields = array('Id','CriteriaType','CampaignId');

$selector->predicates[] = new Predicate('CampaignStatus', 'NOT_IN', 
array('PAUSED', 'REMOVED'));
$selector->predicates[] = new Predicate('CampaignId', 'IN', 
array('2545'));
$selector->predicates[] = new Predicate('CriteriaType', 
'EQUALS','AD_SCHEDULE');
//$selector->predicates[] = new 
Predicate('Criterion.DayOfWeek','EQUALS','MONDAY');
$selector->predicates[] = new 
Predicate('DayOfWeek','IN',array($day));

 but getting this fatal error:


Fatal error:  Uncaught SoapFault exception: [soap:Server] 
[SelectorError.INVALID_PREDICATE_FIELD_NAME @ ; trigger:'DayOfWeek'] in 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php:216Stack
 trace:#0 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
 SoapClient->__soapCall('get', Array, NULL, Array, Array)#1 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/v201603/CampaignCriterionService.php(7949):
 AdsSoapClient->__soapCall('get', Array)#2 
/home/bergstromdev/public_html/lib/Adwords.class.php(1816): 
CampaignCriterionService->get(Object(Selector))


Kindly suggest me a way.




On Sunday, July 24, 2016 at 10:37:32 AM UTC+5:30, Sachin Kumar wrote:
>
> Hello Team,
>
>
> I want to set different bidModifier for different time slot e.g Time: 
> 11-12 bidModifier=1.5, Time: 14-15 bidModifier=1.3.
>
> To achieve this I used this code:
>
> public function update_hour_bid(AdWordsUser $user,$clientId = 
> null,$data=null){
> $newBid = explode("&", $data['newBid']);
> $user = new AdwordsUser();
> $user->SetClientCustomerId($clientId); // ClientId
> 
> $campaignCriterionService = 
> $user->GetService('CampaignCriterionService', ADWORDS_VERSION);
> 
> $operations = array();
> $campaignID = $data['campaignid'];
> 
> //$days = 
> array('MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY','SATURDAY','SUNDAY');
> 
> foreach($newBid as $bid){
> if(!empty($bid)){
> //foreach($days as $day) {
> $Biddata = explode("=", $bid);
> //$Biddata[0] // day
> //$Biddata[1] // hour
> //$Biddata[2] // bid
> $hour = explode('-',$Biddata[1]);
> // $hour[0] // start hour
> // $hour[1] // end hour
> 
> //Set Variables
> $adSchedule = new AdSchedule();
> $adSchedule->dayOfWeek = trim($Biddata[0]);
> $adSchedule->startHour = trim($hour[0]);
> $adSchedule->startMinute = 'ZERO';
> $adSchedule->endHour = trim($hour[1]);
> $adSchedule->endMinute = 'ZERO';
>
> 
> //$adSchedule->bidModifier = trim($Biddata[2]);
> 
> $adScheduleCriterion = new 
> CampaignCriterion();//AdScheduleCriterion();
> $adScheduleCriterion->campaignId = $campaignID;
> $adScheduleCriterion->bidModifier = trim($Biddata[2]);
> $adScheduleCriterion->criterion = $adSchedule;
>
> //Create the Operation
> $operation = new CampaignCriterionOperation();
> $operation->operand = $adScheduleCriterion;
> $operation->operator = 'ADD';
> $operations[] = $operation;
> 
> //echo '';print_r($operations);die();
> }
> }
> //Mutate!
> $result = $campaignCriterionService->mutate($operations);
> echo '';print_r($result);die();
> if (count($results->value)){
> return 1;
> }else{
> return 0;
> }
>
> }
>
>  When I use $operation->operator = 'ADD' this code generate 
>
> Fatal error:  Uncaught So

Re: Set defferent bidModifier for different time slot

2016-07-25 Thread Sachin Kumar
Thank you Peter for your reply. Your points helped me to find a way.


I got the way to add/update/remove the Ad schedule bid modifiers for 
different time slots. One thing I want to know, How I can get the list of 
fields which can be selected from any service 
e.g.('CampaignCriterionService')? 


Thanks in advance.

On Sunday, July 24, 2016 at 10:37:32 AM UTC+5:30, Sachin Kumar wrote:
>
> Hello Team,
>
>
> I want to set different bidModifier for different time slot e.g Time: 
> 11-12 bidModifier=1.5, Time: 14-15 bidModifier=1.3.
>
> To achieve this I used this code:
>
> public function update_hour_bid(AdWordsUser $user,$clientId = 
> null,$data=null){
> $newBid = explode("&", $data['newBid']);
> $user = new AdwordsUser();
> $user->SetClientCustomerId($clientId); // ClientId
> 
> $campaignCriterionService = 
> $user->GetService('CampaignCriterionService', ADWORDS_VERSION);
> 
> $operations = array();
> $campaignID = $data['campaignid'];
> 
> //$days = 
> array('MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY','SATURDAY','SUNDAY');
> 
> foreach($newBid as $bid){
> if(!empty($bid)){
> //foreach($days as $day) {
> $Biddata = explode("=", $bid);
> //$Biddata[0] // day
> //$Biddata[1] // hour
> //$Biddata[2] // bid
> $hour = explode('-',$Biddata[1]);
> // $hour[0] // start hour
> // $hour[1] // end hour
> 
> //Set Variables
> $adSchedule = new AdSchedule();
> $adSchedule->dayOfWeek = trim($Biddata[0]);
> $adSchedule->startHour = trim($hour[0]);
> $adSchedule->startMinute = 'ZERO';
> $adSchedule->endHour = trim($hour[1]);
> $adSchedule->endMinute = 'ZERO';
>
> 
> //$adSchedule->bidModifier = trim($Biddata[2]);
> 
> $adScheduleCriterion = new 
> CampaignCriterion();//AdScheduleCriterion();
> $adScheduleCriterion->campaignId = $campaignID;
> $adScheduleCriterion->bidModifier = trim($Biddata[2]);
> $adScheduleCriterion->criterion = $adSchedule;
>
> //Create the Operation
> $operation = new CampaignCriterionOperation();
> $operation->operand = $adScheduleCriterion;
> $operation->operator = 'ADD';
> $operations[] = $operation;
> 
> //echo '';print_r($operations);die();
> }
> }
> //Mutate!
> $result = $campaignCriterionService->mutate($operations);
> echo '';print_r($result);die();
> if (count($results->value)){
> return 1;
> }else{
> return 0;
> }
>
> }
>
>  When I use $operation->operator = 'ADD' this code generate 
>
> Fatal error:  Uncaught SoapFault exception: [soap:Server] 
> [CriterionError.AD_SCHEDULE_TIME_INTERVALS_OVERLAP
>  @ operations[0].operand.criterion; trigger:'Existing schedule: 
> AdSchedule{id=CriterionId{id=320824}
> , dayOfWeek=WEDNESDAY, startHour=2, startMinute=ZERO, endHour=6, 
> endMinute=ZERO}', RangeError.TOO_LOW
>  @ operations[0].operand.bidModifier,
>
>  When I use $operation->operator = 'SET' this generate error that criteria 
> Id is required.
>
>
> Kindly suggest me any change in this code so that I can set different  
> bidModifier for different time slot.
>
>
> Thanks & Regards
>
> Sachin Kumar
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/07df55be-1071-4e3c-8662-f0439a0facfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Set defferent bidModifier for different time slot

2016-07-23 Thread Sachin Kumar
Hello Team,


I want to set different bidModifier for different time slot e.g Time: 11-12 
bidModifier=1.5, Time: 14-15 bidModifier=1.3.

To achieve this I used this code:

public function update_hour_bid(AdWordsUser $user,$clientId = 
null,$data=null){
$newBid = explode("&", $data['newBid']);
$user = new AdwordsUser();
$user->SetClientCustomerId($clientId); // ClientId

$campaignCriterionService = 
$user->GetService('CampaignCriterionService', ADWORDS_VERSION);

$operations = array();
$campaignID = $data['campaignid'];

//$days = 
array('MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY','SATURDAY','SUNDAY');

foreach($newBid as $bid){
if(!empty($bid)){
//foreach($days as $day) {
$Biddata = explode("=", $bid);
//$Biddata[0] // day
//$Biddata[1] // hour
//$Biddata[2] // bid
$hour = explode('-',$Biddata[1]);
// $hour[0] // start hour
// $hour[1] // end hour

//Set Variables
$adSchedule = new AdSchedule();
$adSchedule->dayOfWeek = trim($Biddata[0]);
$adSchedule->startHour = trim($hour[0]);
$adSchedule->startMinute = 'ZERO';
$adSchedule->endHour = trim($hour[1]);
$adSchedule->endMinute = 'ZERO';
   

//$adSchedule->bidModifier = trim($Biddata[2]);

$adScheduleCriterion = new 
CampaignCriterion();//AdScheduleCriterion();
$adScheduleCriterion->campaignId = $campaignID;
$adScheduleCriterion->bidModifier = trim($Biddata[2]);
$adScheduleCriterion->criterion = $adSchedule;
   
//Create the Operation
$operation = new CampaignCriterionOperation();
$operation->operand = $adScheduleCriterion;
$operation->operator = 'ADD';
$operations[] = $operation;

//echo '';print_r($operations);die();
}
}
//Mutate!
$result = $campaignCriterionService->mutate($operations);
echo '';print_r($result);die();
if (count($results->value)){
return 1;
}else{
return 0;
}

}

 When I use $operation->operator = 'ADD' this code generate 

Fatal error:  Uncaught SoapFault exception: [soap:Server] 
[CriterionError.AD_SCHEDULE_TIME_INTERVALS_OVERLAP
 @ operations[0].operand.criterion; trigger:'Existing schedule: 
AdSchedule{id=CriterionId{id=320824}
, dayOfWeek=WEDNESDAY, startHour=2, startMinute=ZERO, endHour=6, 
endMinute=ZERO}', RangeError.TOO_LOW
 @ operations[0].operand.bidModifier,

 When I use $operation->operator = 'SET' this generate error that criteria 
Id is required.


Kindly suggest me any change in this code so that I can set different  
bidModifier for different time slot.


Thanks & Regards

Sachin Kumar



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/1c0813a4-d4f6-4e13-aaf0-4e75cbe1026f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add/Remove target location of campaign

2016-06-27 Thread Sachin Kumar
Hello Peter,

Its worked now. I rearrange sequence of these two lines:
$campaignCriterionService =
$user->GetService('
CampaignCriterionService', ADWORDS_VERSION);
$user->SetClientCustomerId(base64_decode($ajaxData['clientId']));


Now working fine. Thank you for your response and guidance.
 :):)

On Monday, June 27, 2016 at 12:12:57 PM UTC+5:30, Sachin Kumar wrote:
>
> Hello Team,
>
> Goal: To add/remove target location in campaign
>
> I want to add location in campaign target location. To achieve this I am 
> using this code:
>
>
>
> $campaignCriterionService =
> $user->GetService('CampaignCriterionService', ADWORDS_VERSION);
> $user->SetClientCustomerId(base64_decode($ajaxData['clientId']));
> //echo '';
> //print_r($ajaxData);die();
> $campaignCriteria = array();
> 
> // Create locations. The IDs can be found in the documentation or 
> retrieved
> // with the LocationCriterionService.
> $location = new Location();
> $location->id = intval($ajaxData['Target']);   // location id e.g. 
> 2840 etc. 
> 
> //$campaignCriteria[] = new 
> CampaignCriterion($ajaxData['CampaignId'], null, $location);
> 
> $campaignCriteria[] = new 
> CampaignCriterion(intval($ajaxData['CampaignId']), null, $location);
>
> 
> // Create operations.
>   $operations = array();
>   foreach ($campaignCriteria as $campaignCriterion) {
> $operations[] = new 
> CampaignCriterionOperation($campaignCriterion, 'ADD');
> }
> 
> // Make the mutate request.
> $result = $campaignCriterionService->mutate($operations);
>
>
> But this giving me following error:
>
> 
> Fatal error:  Uncaught SoapFault exception: [soap:Server] 
> [EntityNotFound.INVALID_ID @ operations
> [0].operand.campaignId; trigger:'CampaignId: 254533954'] in 
> /home/bergstromdev/public_html/Google/Api
> /Ads/Common/Lib/AdsSoapClient.php:216
> Stack trace:
> #0 
> /home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
>  
> SoapClient->__soapCall
> ('mutate', Array, NULL, Array, Array)
> #1 
> /home/bergstromdev/public_html/Google/Api/Ads/AdWords/v201603/CampaignCriterionService.php(7969):
>  AdsSoapClient->__soapCall('mutate', Array)
> #2 /home/bergstromdev/public_html/lib/Targetting.class.php(42): 
> CampaignCriterionService->mutate(Array
> )
> #3 /home/bergstromdev/public_html/ajaxCall.php(62): 
> Targetting->addLocationTarget(Object(AdWordsUser
> ), Array)
> #4 {main}
>   thrown in 
> /home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php
>  
> on line
>  216
>
>
> Kindly guide me how I can escape these errors. I pick this code from 
> examples provided in the php library
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/aa052a4d-3f25-437d-8a7e-38bb85fe6762%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Add/Remove target location of campaign

2016-06-26 Thread Sachin Kumar
Hello Team,

Goal: To add/remove target location in campaign

I want to add location in campaign target location. To achieve this I am 
using this code:



$campaignCriterionService =
$user->GetService('CampaignCriterionService', ADWORDS_VERSION);
$user->SetClientCustomerId(base64_decode($ajaxData['clientId']));
//echo '';
//print_r($ajaxData);die();
$campaignCriteria = array();

// Create locations. The IDs can be found in the documentation or 
retrieved
// with the LocationCriterionService.
$location = new Location();
$location->id = intval($ajaxData['Target']);   // location id e.g. 
2840 etc. 

//$campaignCriteria[] = new 
CampaignCriterion($ajaxData['CampaignId'], null, $location);

$campaignCriteria[] = new 
CampaignCriterion(intval($ajaxData['CampaignId']), null, $location);


// Create operations.
  $operations = array();
  foreach ($campaignCriteria as $campaignCriterion) {
$operations[] = new 
CampaignCriterionOperation($campaignCriterion, 'ADD');
}

// Make the mutate request.
$result = $campaignCriterionService->mutate($operations);


But this giving me following error:


Fatal error:  Uncaught SoapFault exception: [soap:Server] 
[EntityNotFound.INVALID_ID @ operations
[0].operand.campaignId; trigger:'CampaignId: 254533954'] in 
/home/bergstromdev/public_html/Google/Api
/Ads/Common/Lib/AdsSoapClient.php:216
Stack trace:
#0 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
 
SoapClient->__soapCall
('mutate', Array, NULL, Array, Array)
#1 
/home/bergstromdev/public_html/Google/Api/Ads/AdWords/v201603/CampaignCriterionService.php(7969):
 AdsSoapClient->__soapCall('mutate', Array)
#2 /home/bergstromdev/public_html/lib/Targetting.class.php(42): 
CampaignCriterionService->mutate(Array
)
#3 /home/bergstromdev/public_html/ajaxCall.php(62): 
Targetting->addLocationTarget(Object(AdWordsUser
), Array)
#4 {main}
  thrown in 
/home/bergstromdev/public_html/Google/Api/Ads/Common/Lib/AdsSoapClient.php
 
on line
 216


Kindly guide me how I can escape these errors. I pick this code from 
examples provided in the php library



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/8286366b-e0ef-47b4-bfdc-6af4e964b1ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Environment 'PRODUCTION' does not support version 'v201603'

2016-06-20 Thread Sachin Wagh
Getting error "Environment 'PRODUCTION' does not support version 'v201603' 
" during Adwords Api Version Migration. Updated to latest version of gem 
still same error. HOw to solve it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/28f9eafa-2022-45cf-945a-5c19046fbb8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Performance report based on Proximity and Location

2016-06-10 Thread Sachin Kumar


On Friday, April 15, 2016 at 4:07:44 PM UTC+5:30, Charles Serra wrote:
>
> Hi everyone,
>
> I'd like to get a report which could show Proximity and Location 
> performance ordered by campaign.
>
> I read the documentation on Adwords API, and I found this here 
> 
> :
>
> Geo performance reporting 
>>
>> You can analyze the effectiveness of geo targeting in your campaigns by 
>> running reports. The AdWords API provides you two report types to get geo 
>> performance data:
>>
>>1. You can use the geo performance report 
>>. 
>>2. *You can use the criteria report, and filter by 
>>CriteriaType=LOCATION or PROXIMITY to get geo performance data for a 
>>particular geo target.*
>>
>>
> The 2nd point is exactly what I am looking for.
>
> In Adwords UI, I picked a campaign where I have many Locations and 
> Proximities criterion with a report on the last 7 days.
>
> Then, I downloaded the report through the Adwords API (v201601, with a 
> dotnet c# client) using this ReportDefinition object (I changed the 
> campaign Id):
>
> ReportDefinition definition = new ReportDefinition()
>> {
>> reportType = ReportDefinitionReportType.
>> *CRITERIA_PERFORMANCE_REPORT*,
>> downloadFormat = DownloadFormat.CSVFOREXCEL,
>> dateRangeType = ReportDefinitionDateRangeType.
>> *LAST_7_DAYS*,
>> selector = new Selector()
>> {
>> predicates = new Predicate[] { Predicate.Equals("
>> *CampaignId*", *000*) },
>> fields = new string[] { "Id", "*CriteriaType*", 
>> "Criteria", "CampaignId", "CampaignName", "AdGroupId", "AdGroupName", 
>> "LabelIds", "Labels", "DisplayName" },
>> },
>> includeZeroImpressions = true
>> };
>
>  
>
> definition.reportName = definition.reportType.ToString() + " " 
>> + definition.dateRangeType.ToString();
>
>
> In the downloaded criteria report, in the column "CriteriaType", I have 0 
> row corresponding to a "Proximity" or "Location" whereas I'm using the same 
> settings on UI and the API.
>
> Can't understand why it's not working. Am I doing something wrong?
>
> Could you try to reproduce this issue?
>
> Thanks for your help.
>
> Regards,
>
> Charles.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/2a15fbf3-c5b3-4067-be02-ca832dc3ea1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign remaining/spent(used) amount

2016-05-17 Thread Sachin Kumar

Hello 

I am using ad words api v201603 and* I want to show particular campaign 
remaining and spent amount?. *I am using test account credentials and 
getting all campaign and clients perfectly.


Any help is appreciated.

Thanks & Regrads
Sachin Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/9b4768e4-6a41-46ce-b4bd-1c34885e0346%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Free web hosting service

2014-10-31 Thread Sachin Patil
Hello everyone,

I would like to tell you about free web hosting service I use now.
Register here: http://www.000webhost.com/820054.html

They give 1500 MB of disk space and 100 GB data transfer. I am now using 
them for about 3 months and never seen any downtime of server problems. 
There is no any kind of advertising on my pages too, so I think its worth 
to signup.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/98260563-b545-4d88-974a-205dacfd1b9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthToken (requirement for v201109): not required in v201101

2012-02-01 Thread Sachin
Why we need the AuthToken?
can you please explain with example of download AdPerformance report in 
.net. If u know then please help me it is urgent.

Thanks in advance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Not able to get AD_PERFORMANCE_REPORT report using clientCustomerID

2012-01-30 Thread Sachin

 Hello
We are using V201109 Adwords API. We are not able to download
AD_PERFORMANCE_REPORT report using 10 digit clientCustomerID.
We pass the header "clientCustomerID" with 10 digit account number.
it gives error like that "Report contents are invalid. - !!!2|||-1|||
AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @
Service[ReportInfoService.get]???".
so how can I download above report using clientCustomerID.


Thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: ReportDefinitionService: How to identify valid "report column" combination?

2011-10-05 Thread Sachin
Hey Jason,

Thanks a lot for your reply. It's helped me a lot to figure out issue.

Sachin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


ReportDefinitionService: How to identify valid "report column" combination?

2011-10-04 Thread Sachin
Hi,

I am working on Google Adwords API v201101. Basically, I need to
generate reports using "ReportDefinitionService".

I need help to identify/validate "report column" combinitions. Many
times it gives error of invalid combination of columns for some report
types, and I need to re-select columns.

So how do I identify the valid column combinations before generating
report?
Is there any set of rules or reference or list available which shows
valid column combinations for each report category?

And It would be great if you can suggest me best practice or way to
validate columns before generating report for avoiding such errors.

Best,
Sachin Patel

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Got Error - Report contents are invalid. - !!!1|||0|||rangeerror.too_...@selector.reportdefinitionid.id while download data from the google api

2011-09-07 Thread Sachin
Hi all,

Got the error Report contents are invalid. - 
!!!1|||0|||rangeerror.too_...@selector.reportdefinitionid.id while get data 
from google adword api in below function..

new ReportUtilities(user).DownloadClientReport(id, fileName);

please give solution as soon as possible.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: How can i determine that given userid is MCC account or non MCC account?

2011-08-30 Thread Sachin
Ken one more Question.

But how can i found that given userID and password is MCC account or
individual account.

On Aug 5, 6:50 pm, Ken Foster  wrote:
> Do you have the C# API and Examples? If so, checkout v201101
> GetAccountHierarchy.cs, it uses the ServicedAccountService service to get a
> complete list of accounts under the MCC. One of the properties for each
> account returned is CanManageClients, a true is MCC a false is a normal
> account.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: Not able to get all clientsId under MCC account

2011-08-26 Thread Sachin
Thanks Chirag, i got the solution.
Thanks

On Aug 5, 3:18 pm, Chirag  wrote:
> Hi Sachin,
> Its problem with API.
> Eric has solved issued. Now i am getting desired 
> output.http://code.google.com/p/google-api-adwords-php/issues/detail?id=62
>
> Thanks,
>
> On Aug 5, 3:14 pm, Sachin  wrote:
>
>
>
>
>
>
>
> > can u please send source code here.
>
> > On Jul 12, 11:13 pm, Chirag  wrote:
>
> > > Hi,
> > > I want all clientsId under MCC account, and than fom clientid all
> > > campaignIds under one client.
> > > But, when i try to run example GetAccountHierarchy.php. It always
> > > shows me "No serviced accounts were found."
>
> > > I am using sandbox environment for testing this examples.
>
> > > Thanks,
> > > Chirag

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Got Error when import second time of MCC acoount.

2011-08-26 Thread Sachin
   File.Delete(fileName);
        }
catch (Exception ex)
{

}
new
ReportUtilities(user).DownloadClientReport(id, fileName);
StreamReader streamReader = new
StreamReader(fileName);
adPerformanceCostReport =
streamReader.ReadToEnd();
streamReader.Close();


Regards,
Sachin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: How can i determine that given userid is MCC account or non MCC account?

2011-08-05 Thread Sachin
Thank you so much Ken,

Got the solution.

Thanks and Regards,
Sachin,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


How can i get all accounts infromation under the MCC account?

2011-08-05 Thread Sachin
How can i get all accounts from MCC account.

Also need the all information like account id and account name for
each account.

please give solution for that.


Thanks and Regards,
Sachin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: How can i determine that given userid is MCC account or non MCC account?

2011-08-05 Thread Sachin
One more question how to get all accounts information under the mcc
account.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: Not able to get all clientsId under MCC account

2011-08-05 Thread Sachin
can u please send source code here.

On Jul 12, 11:13 pm, Chirag  wrote:
> Hi,
> I want all clientsId under MCC account, and than fom clientid all
> campaignIds under one client.
> But, when i try to run example GetAccountHierarchy.php. It always
> shows me "No serviced accounts were found."
>
> I am using sandbox environment for testing this examples.
>
> Thanks,
> Chirag

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


How can i determine that given userid is MCC account or non MCC account?

2011-08-04 Thread Sachin
How can i determine that given userid is MCC account or not in
C# .net.
Is there any function to find out that?
please help me as soon as possible.

Thanks and regards,

Sachin.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Got Error QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:''

2011-07-20 Thread Sachin
 Hi,

I get this error while importing data. It does not get generated always. 
Sometimes data gets imported successfully.

Anybody having any idea about this error?

please help. 

Thanks & Regard
Sachin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Re: keyword tool search

2011-07-20 Thread sachin prabhu
EDIT there is a mistake in the script : i changed the keyword =
'www.facebook.com'
even then i get this as output
{'Attribute_Type': 'LongAttribute', 'value': '55'}


On Jul 21, 7:07 am, sachin prabhu  wrote:
> Hello i ned to retrieve the global monthly searches from the keyword
> tool in the adwords api
> example :http://postimage.org/image/300xck46c/
> Shows around 68,000,000 global monthly searches...
>
> Here is my python script that is supposed to do the same which gives
> the output
> {'Attribute_Type': 'LongAttribute', 'value': '301000'}
> which is 301,000 ..
> may i know why this is happening ?
>
> targeting_idea_service = client.GetTargetingIdeaService(
>     'https://adwords-sandbox.google.com', 'v201101')
>
> # Construct selector object and retrieve related keywords.
> keyword = 'madmax'
> selector = {
>     'searchParameters': [{
>         'xsi_type': 'RelatedToKeywordSearchParameter',
>         'keywords': [{
>             'text': keyword,
>             'matchType': 'PHRASE'
>         }]
>     }],
>     'ideaType': 'KEYWORD',
>     'requestType': 'STATS',
>     'requestedAttributeTypes': ['GLOBAL_MONTHLY_SEARCHES'],
>     'paging': {
>         'startIndex': '0',
>         'numberResults': '10'
>     }}
>
> page = targeting_idea_service.Get(selector)[0]
>
> # Display results.
> if 'entries' in page:
>   for result in page['entries']:
>     result = result['data'][0]['value']
>     print result

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


keyword tool search

2011-07-20 Thread sachin prabhu
Hello i ned to retrieve the global monthly searches from the keyword
tool in the adwords api
example :
http://postimage.org/image/300xck46c/
Shows around 68,000,000 global monthly searches...

Here is my python script that is supposed to do the same which gives
the output
{'Attribute_Type': 'LongAttribute', 'value': '301000'}
which is 301,000 ..
may i know why this is happening ?


targeting_idea_service = client.GetTargetingIdeaService(
'https://adwords-sandbox.google.com', 'v201101')

# Construct selector object and retrieve related keywords.
keyword = 'madmax'
selector = {
'searchParameters': [{
'xsi_type': 'RelatedToKeywordSearchParameter',
'keywords': [{
'text': keyword,
'matchType': 'PHRASE'
}]
}],
'ideaType': 'KEYWORD',
'requestType': 'STATS',
'requestedAttributeTypes': ['GLOBAL_MONTHLY_SEARCHES'],
'paging': {
'startIndex': '0',
'numberResults': '10'
}
}
page = targeting_idea_service.Get(selector)[0]

# Display results.
if 'entries' in page:
  for result in page['entries']:
result = result['data'][0]['value']
print result

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


How can i get 'Keyword Name', 'QualityScore','Keyword Status' and 'Keyword Match Type' columns in "Ad Performance" report.

2011-07-19 Thread Sachin
Hi.

Objective :- Get Unique record(CampaignID,AdGroupId,KeywordID,Date) from 
Keyword Performance Report.

I understand from reading Google forums that the only way to get creativeID 
is to change our report request from "Keywords Performance" to "Ad 
Performance". 
And i have transfered form Keywords Performance Report to Ad Performance 
Report but not found below columns in "Ad Performance Report".
1) KeywordMatchType 2) KeywordText
3) MaxCpc4) FirstPageCpc   5) QualityScore  6) KeywordStatus
   
 
How can i get above columns using Ad Performance Report.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


Got the error while import data from API "Failed to download report. Exception says \"!!!1|||94100810|||ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH@selector???\"

2011-07-18 Thread Sachin
Hi,

Got the error while import data from AdwordApi. it is work in individual 
account but while pass the MCC account it gives below error.
*
*
*"Failed to download report. Exception says 
\"!!!1|||94100810|||ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH@selector???\"
*

Above error come on calling the below function.

*new ReportUtilities(user).DownloadReportDefinition(id, fileName);*

Is there any other function or any other API call for MCC Account?

Please help us resolve this error as early as possible.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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


AdWords API Re: Problems with Sandbox Testing

2008-10-23 Thread Sachin

Thanks Jeff, I figured out the problem regarding the client library
code earlier..
thanks specially for your valuable clarification on the namespace.

Cheers,
Sachin ;o)

On Oct 22, 8:38 pm, AdWords API Advisor <[EMAIL PROTECTED]>
wrote:
> Hello Sachin,
>
>  The code sample you pasted below is not from the Java client library.
> It's taken from the sample code that we make available to serve as a
> reference implementation and link to from the AdWords API
> documentation.
>
>  If you're looking for standalone code that will work both in the
> Sandbox and Production environment with minimal changes, please try
> the Java client library, available at
>
>  http://code.google.com/p/google-api-adwords-java/
>
>  To answer your specific question about namespaces, the namespace is
> identical (http://adwords.google.com/...) regardless of whether you're
> making a request to the Sandbox or Production environments. The only
> thing that differs is the URL of the SOAP endpoint that you're
> contacting. But if you use the Java client library then you normally
> would not have to worry about those details.
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Oct 22, 5:44 am, Sachin <[EMAIL PROTECTED]> wrote:
>
> > I am facing a problem with Sandbox.. calls to the sandbox throws the
> > error that \\" The request did not contain a header named 'email. \\".
> > I have appended the main program that i m using to make the API calls
> > to Sandbox.
>
> > I m not sure about the "namespace" that i have to use, as while
> > debugging i see the adwords namespace "adwords.google.com" hard-coded
> > in each of the calls in the source-code, thats provided along-with the
> > client library.
>
> > I suppose these should point to "sandbox.google.com" as i wish to make
> > calls to Sandbox. Or is there is some other client library for sandbox
> > calls.
>
> > These are the code samples i found confusing in the source code.
> > ---
> > 1. private java.lang.String AccountService_address = "https://
> > adwords.google.com/api/adwords/v12/AccountService";
>
> > 2. _call.setOperationName(new javax.xml.namespace.QName("https://
> > adwords.google.com/api/adwords/v12", "getAccountInfo"));
> > 
>
> > public class AdwordClient {
> >     // Provide AdWords login information.
> >     private static final String email = "[EMAIL PROTECTED]";
> >     private static final String password = "password";
> >     private static final String useragent = "ANY VALUE";
> >     private static final String clientEmail = "client_1"+email;
> >     private static final String developerToken = email+"++INR";
> >     private static final String applicationToken = email+"++INR";
> >     private static final String namespace = "https://
> > sandbox.google.com/api/adwords/v12";
>
> >     public static void main(String[] args) {
> >         try {
> >             // Set up service connection.
> >             AccountInterface service = new
> > AccountServiceLocator().getAccountService();
>
> >             // Define SOAP headers.
> >             ((Stub) service).setHeader(namespace, "email", email);
> >             ((Stub) service).setHeader(namespace, "password",
> > password);
> >             ((Stub) service).setHeader(namespace, "clientEmail",
> > clientEmail);
> >             ((Stub) service).setHeader(namespace, "useragent",
> > useragent);
> >             ((Stub) service).setHeader(namespace, "developerToken",
> > developerToken);
> >             ((Stub) service).setHeader(namespace, "applicationToken",
> > applicationToken);
>
> >             // Get account info.
> >             AccountInfo accountInfo = service.getAccountInfo();
>
> >             // Display account info.
> >             System.out.println("Account name is \""
> >                     + accountInfo.getDescriptiveName() + "\", id is
> > \""
> >                     + accountInfo.getCustomerId() + "\", and currency
> > code is \""
> >                     + accountInfo.getCurrencyCode() + "\".");
>
> >         } catch (Exception e) {
> >             e.printStackTrace();
> >         }
> >     }
>
> > ===
> > Please clarify my doubts.
>
> > Thanks in Advance,
> > Sachin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~--~~~~--~~--~--~---



AdWords API Problems with Sandbox Testing

2008-10-22 Thread Sachin

I am facing a problem with Sandbox.. calls to the sandbox throws the
error that \\" The request did not contain a header named 'email. \\".
I have appended the main program that i m using to make the API calls
to Sandbox.

I m not sure about the "namespace" that i have to use, as while
debugging i see the adwords namespace "adwords.google.com" hard-coded
in each of the calls in the source-code, thats provided along-with the
client library.

I suppose these should point to "sandbox.google.com" as i wish to make
calls to Sandbox. Or is there is some other client library for sandbox
calls.

These are the code samples i found confusing in the source code.
---
1. private java.lang.String AccountService_address = "https://
adwords.google.com/api/adwords/v12/AccountService";

2. _call.setOperationName(new javax.xml.namespace.QName("https://
adwords.google.com/api/adwords/v12", "getAccountInfo"));


public class AdwordClient {
// Provide AdWords login information.
private static final String email = "[EMAIL PROTECTED]";
private static final String password = "password";
private static final String useragent = "ANY VALUE";
private static final String clientEmail = "client_1"+email;
private static final String developerToken = email+"++INR";
private static final String applicationToken = email+"++INR";
private static final String namespace = "https://
sandbox.google.com/api/adwords/v12";

public static void main(String[] args) {
try {
// Set up service connection.
AccountInterface service = new
AccountServiceLocator().getAccountService();

// Define SOAP headers.
((Stub) service).setHeader(namespace, "email", email);
((Stub) service).setHeader(namespace, "password",
password);
((Stub) service).setHeader(namespace, "clientEmail",
clientEmail);
((Stub) service).setHeader(namespace, "useragent",
useragent);
((Stub) service).setHeader(namespace, "developerToken",
developerToken);
((Stub) service).setHeader(namespace, "applicationToken",
applicationToken);

// Get account info.
AccountInfo accountInfo = service.getAccountInfo();

// Display account info.
System.out.println("Account name is \""
+ accountInfo.getDescriptiveName() + "\", id is
\""
+ accountInfo.getCustomerId() + "\", and currency
code is \""
+ accountInfo.getCurrencyCode() + "\".");


} catch (Exception e) {
e.printStackTrace();
}
}

===
Please clarify my doubts.

Thanks in Advance,
Sachin






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~--~~~~--~~--~--~---