New ad customizers, no fallback ad necessary, does this mean 100% ad customizer ads is possible?

2016-11-23 Thread AvdV
Hi,

The question I have is basically in the title, we would like to be able to 
use Countdown ads for 100% of our impressions instead of the forced 50/50 
it used to be. This was because a fallback ad was mandatory and whatever we 
did with rotation, it would always show 50% fallback and 50% countdown/ad 
customizer. Now this fallback ad is no longer mandatory 
per 
https://googleadsdeveloper.blogspot.nl/2016/11/customize-adwords-ads-with-ad.html
 
, does this mean the fallback static version of the ad won't be shown 50/50 
with the dynamic feed based version?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a63035a5-df81-472b-a5ea-5a568e20ff22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: update keyword's bidding not working

2016-11-23 Thread Wizard Meccup
However, when i try to set bids not using BatchJob, it works fine and all 
bids are setted. What wrong with BatchJob?


public function updateKeywordsBidSingle(array $keywordsData)
{
$return = array();
try {
foreach ($keywordsData as $key => $keywordData) {
$adGroupCriterionService = 
$this->getUser()->GetService('AdGroupCriterionService', self::API_VERSION);

// Create ad group criterion.
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $keywordData['adGroupId'];
$adGroupCriterion->criterion = new Criterion($keywordData['id']);

// Set bids (optional).
$bid = new CpcBid();
$bid->bid = new Money($this->calcMoney($keywordData['bid']));
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC';
$biddingStrategyConfiguration->bids[] = $bid;
$adGroupCriterion->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;

// Create operation.
$operation = new AdGroupCriterionOperation();
$operation->operand = $adGroupCriterion;
$operation->operator = self::OPERATOR_SET;

$operations = array($operation);

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

$return[$key] = $result->value[0];
}
} catch (Exception $e) {
throw $e;
}

return $return;
}






среда, 23 ноября 2016 г., 18:22:23 UTC+3 пользователь Anthony Madrigal 
написал:
>
> Hi,
>
> CpcBidSource and BiddingStrategySource are read-only fields so they will 
> be ignored when using them. However, if you set the Cpc bids for keywords 
> they should turn to CRITERION level, which is not happening like you said. 
> Because of this, could you please provide me with the SOAP request and 
> response for this API call and the adgroup Id and keyword Id that you are 
> trying to set through *reply privately to author*?
>
> Thanks,
> 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/2fae42ec-6d8e-4395-b312-23721ee99d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to get final urls for each keyword from api

2016-11-23 Thread 'Peter Oliquino' via AdWords API Forum
Hi Yali,

I tried your code using my test account and was able to get results. You 
might want to remove the line below as well to have a clearer output :

System.out.printf("Keyword final url is %s", bac.getBidModifier());


I could not see which part of your code where you instantiated the "bac" 
object so I just removed it. Below is the sample SOAP request and response 
that I got :

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

https://adwords.google.com/api/adwords/cm/v201609"; 
soapenv:mustUnderstand="0">
CUSTOMER_ID
DEVELOPER_TOKEN
USER_AGENT
false
false



https://adwords.google.com/api/adwords/cm/v201609";>

Id
CriteriaType
KeywordMatchType
KeywordText
FinalUrls

AdGroupId
IN
THE_ADGROUP_ID


CriteriaType
IN
KEYWORD


KeywordText
ASCENDING


0
100





[main] INFO 
com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger - 
SOAP Response:

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

https://adwords.google.com/api/adwords/cm/v201609";>
REQUEST_ID
AdGroupCriterionService
get
1
396



https://adwords.google.com/api/adwords/cm/v201609";>

1
AdGroupCriterionPage
http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
THE_ADGROUP_ID
BIDDABLE

THE_KEYWORD_ID
KEYWORD
Keyword
Test Me
BROAD


BiddableAdGroupCriterion

http://www.testme.com








Could you retry your request and let me know if the issue persists? If yes, 
kindly include the SOAP request and response generated including the 
clientCustomerId used, so I can take a closer look at the issue. Please 
reply using *Reply privately to author* in doing so.

Thanks and 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/c08c9f47-89ed-4e89-b734-fb123a258ca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GetRefreshToken parse error unexpected {

2016-11-23 Thread 'Joyce Lava' via AdWords API Forum
Hi,

I will provide support for you since Anthony is on OOO.

Regarding the PHP version, it is required by the client library 
 to use PHP 5.3 or higher. 
Please let us know the results once upgraded to a higher version.

Regards,
Joyce, 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/61eeb422-e4f3-4c4e-b78b-ee43631cb4a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GetRefreshToken parse error unexpected {

2016-11-23 Thread Api Noob

Putty Says php 4.4.9.So that maybe the problem. I am upgrading to php 7 to 
see if that helps. Thanks.
On Wednesday, November 23, 2016 at 3:34:49 PM UTC+1, Api Noob wrote:
>
> I get "Parse error:  syntax error, unexpected '{' in 
> /homepages/32/d648207300/htdocs/api/adwords/examples/AdWords/Auth/GetRefreshToken.php
>  
> on line 78
> for GetRefreshToken when I run the php in ssh. I checked php syntax 
> checkers and they all said the file is fine
>  /**
>  * This example will print out an OAuth2 refresh token. Please copy the 
> refresh
>  * token into your auth.ini file after running.
>  *
>  * PHP version 5
>  *
>  * Copyright 2013, Google Inc. All Rights Reserved.
>  *
>  * Licensed under the Apache License, Version 2.0 (the "License");
>  * you may not use this file except in compliance with the License.
>  * You may obtain a copy of the License at
>  *
>  * http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing, software
>  * distributed under the License is distributed on an "AS IS" BASIS,
>  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>  * See the License for the specific language governing permissions and
>  * limitations under the License.
>  *
>  * @packageGoogleApiAdsAdWords
>  * @subpackage Auth
>  * @category   WebServices
>  * @copyright  2013, Google Inc. All Rights Reserved.
>  * @licensehttp://www.apache.org/licenses/LICENSE-2.0 Apache License,
>  * Version 2.0
>  */
> require_once dirname(__FILE__) . '/init.php';
>
> /**
>  * Gets an OAuth2 credential.
>  * @param string $user the user that contains the client ID and secret
>  * @return array the user's OAuth 2 credentials
>  */
> function GetOAuth2Credential($user) {
>   $redirectUri = null;
>   $offline = true;
>   // Get the authorization URL for the OAuth2 token.
>   // No redirect URL is being used since this is an installed application. 
> A web
>   // application would pass in a redirect URL back to the application,
>   // ensuring it's one that has been configured in the API console.
>   // Passing true for the second parameter ($offline) will provide us a 
> refresh
>   // token which can used be refresh the access token when it expires.
>   $OAuth2Handler = $user->GetOAuth2Handler();
>   $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl(
>   $user->GetOAuth2Info(), $redirectUri, $offline);
>
>   // In a web application you would redirect the user to the authorization 
> URL
>   // and after approving the token they would be redirected back to the
>   // redirect URL, with the URL parameter "code" added. For desktop
>   // or server applications, spawn a browser to the URL and then have the 
> user
>   // enter the authorization code that is displayed.
>   printf("Log in to your AdWords account and open the following 
> URL:\n%s\n\n",
>   $authorizationUrl);
>   print "After approving the token enter the authorization code here: ";
>   $stdin = fopen('php://stdin', 'r');
>   $code = trim(fgets($stdin));
>   fclose($stdin);
>   print "\n";
>
>   // Get the access token using the authorization code. Ensure you use the 
> same
>   // redirect URL used when requesting authorization.
>   $user->SetOAuth2Info(
> $OAuth2Handler->GetAccessToken(
> $user->GetOAuth2Info(), $code, $redirectUri));
>
>   // The access token expires but the refresh token obtained for offline 
> use
>   // doesn't, and should be stored for later use.
>   return $user->GetOAuth2Info();
>
> }
> // Don't run the example if the file is being included.
> if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
>   return;
> }
>
> try {
>   // Get the client ID and secret from the auth.ini file. If you do not 
> have a
>   // client ID or secret, please create one of type "installed 
> application" in
>   // the Google API console: https://code.google.com/apis/console#access
>   // and set it in the auth.ini file.
>   $user = new AdWordsUser();
> $user->LogAll();
>
>   // Get the OAuth2 credential.
>   $oauth2Info = GetOAuth2Credential($user);
>
>   // Enter the refresh token into your auth.ini file.
>   printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']);
>   printf("In your auth.ini file, edit the refresh_token line to be:\n"
>   . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']);
> } catch (OAuth2Exception $e) {
>   ExampleUtils::CheckForOAuth2Errors($e);
> } catch (ValidationException $e) {
>   ExampleUtils::CheckForOAuth2Errors($e);
> } catch (Exception $e) {
>   printf("An error has occurred: %s\n", $e->getMessage());
> }
>
>
>
>
>

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

Re: Unknown exception when calling FeedItemService

2016-11-23 Thread Caihua Du
Thanks Peter for the prompt response.

Yes, we enabled the SOAP and we can get the SOAP trace for successful 
calls. But if the call failed, seems the API request/response is not logged 
in the trace. I will send over the customer ID and FeedId separately. 
Thanks!

On Wednesday, November 23, 2016 at 7:24:31 PM UTC-8, Peter Oliquino wrote:

> Hi Caihua,
>
> Could you confirm if you have enabled SOAP in your client library? If you 
> haven't yet, you may refer to this guide 
>  (in Java) 
> on how to enable it and send the SOAP request and response so I can further 
> investigate. Let me know if you are using a different language so I can 
> provide the appropriate guide. 
>
> If you have already enabled logging and there was no SOAP XML generated, 
> you may send your customer ID and the feed ID that failed. Please reply 
> using *Reply privately to author*.
>
> Thanks and 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/65e316c3-b2c6-46b9-9944-bcf6f98bb3be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a way to get final urls for each keyword from api

2016-11-23 Thread Yali Wang


Hi All,


I recently met an issue with final urls, I tried to get final urls for each 
keyword but it always return null for some reason, could you please help me 
with this issue ? Thanks a lot.




public class FinalUrls {

private static final int PAGE_SIZE = 100;

public static void main(String[] args) throws Exception {
// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential = new OfflineCredentials.Builder()
.forApi(OfflineCredentials.Api.ADWORDS)
.fromFile()
.build()
.generateCredential();

// Construct an AdWordsSession.
AdWordsSession session = new AdWordsSession.Builder()
.fromFile()
.withOAuth2Credential(oAuth2Credential)
.build();

Long adGroupId = Long.parseLong("3310344562");

AdWordsServices adWordsServices = new AdWordsServices();

getFinalUrls(adWordsServices, session, adGroupId);
}

public static void getFinalUrls(AdWordsServices adWordsServices, 
AdWordsSession session, Long adGroupId) throws Exception {

int offset = 0;

// Get the AdGroupCriterionService.
AdGroupCriterionServiceInterface adGroupCriterionService =
adWordsServices.get(session, 
AdGroupCriterionServiceInterface.class);

SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(
AdGroupCriterionField.Id,
AdGroupCriterionField.CriteriaType,
AdGroupCriterionField.KeywordMatchType,
AdGroupCriterionField.KeywordText,
AdGroupCriterionField.FinalUrls)
.orderAscBy(AdGroupCriterionField.KeywordText)
.offset(offset)
.limit(PAGE_SIZE)
.in(AdGroupCriterionField.AdGroupId, adGroupId.toString())
.in(AdGroupCriterionField.CriteriaType, "KEYWORD")
.build();

AdGroupCriterionPage page = adGroupCriterionService.get(selector);

// Display ad group criteria.
if (page.getEntries() != null && page.getEntries().length > 0) {
// Display results.
for (AdGroupCriterion adGroupCriterionResult : page.getEntries()) {
Keyword keyword = (Keyword) 
adGroupCriterionResult.getCriterion();
System.out.printf(
"Keyword with text '%s', match type '%s', criteria type 
'%s', and ID %d was found.%n",
keyword.getText(), keyword.getMatchType(), 
keyword.getType(), keyword.getId());
BiddableAdGroupCriterion biddableAdGroupCriterion= 
(BiddableAdGroupCriterion) adGroupCriterionResult;
System.out.printf("Keyword final url is %s", 
bac.getBidModifier());
if (biddableAdGroupCriterion == null) {
System.out.println("object is null");
} else {
System.out.printf("Keyword final url is %s", 
biddableAdGroupCriterion.getFinalUrls().getUrls(0));
System.out.println();
}
}
} else {
System.out.println("No ad group criteria were found.");
}

offset += PAGE_SIZE;
selector = builder.increaseOffsetBy(PAGE_SIZE).build();
}
}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9f277c5a-3798-4059-970d-d1fff643951d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Conversion Actions individual Conversion Values.

2016-11-23 Thread Daniel Osuna
Hey guys, i'm a little bit frustrated with this issue, i can't manage to 
get the information i want from the Conversions Actions site of an account 
we're managing my team and i. I want to get the data from "All Conversions" 
and "Conversions Value" from each one of the Conversions Actions, but with 
our code instead we get the total of conversions only, i wanna know if what 
i want to do it's possible at all, i'll attach a picture to explain myself 
a little bit. Thank you. (Sorry for my bad english)







-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1bd793e3-730e-467d-a569-ffc0005a4d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unknown exception when calling FeedItemService

2016-11-23 Thread 'Peter Oliquino' via AdWords API Forum
Hi Caihua,

Could you confirm if you have enabled SOAP in your client library? If you 
haven't yet, you may refer to this guide 
 (in Java) on 
how to enable it and send the SOAP request and response so I can further 
investigate. Let me know if you are using a different language so I can 
provide the appropriate guide. 

If you have already enabled logging and there was no SOAP XML generated, 
you may send your customer ID and the feed ID that failed. Please reply 
using *Reply privately to author*.

Thanks and 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/8f428049-f0ae-403d-b194-c385cee5bf66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unknown exception when calling FeedItemService

2016-11-23 Thread Caihua Du

Hi team,

We found that when we call FeedItemService for a specific customer, it will 
already return the following error. We enabled the trace when calling 
adwords api, but seems when the error happened, it doesn't trace anything 
in our log. I have the customerid and feedit that failed when calling the 
FeedItemService, so I can send over to you privately. Thanks!


System.InvalidOperationException: Response is not well-formed XML. ---> 
System.Xml.XmlException: Data at the root level is invalid. Line 1, 
position 1. 
at System.Xml.XmlTextReaderImpl.Throw(Exception e) 
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() 
at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean 
preserveWhitespace) 
at System.Xml.XmlDocument.Load(XmlReader reader) 
at System.Xml.XmlDocument.Load(TextReader txtReader) 
at Google.Api.Ads.Common.Util.SerializationUtilities.LoadXml(String 
xmlText) 
at 
Google.Api.Ads.Common.Lib.SoapListenerExtension.CallListeners(SoapMessageDirection
 
direction) 
at 
Google.Api.Ads.Common.Lib.SoapListenerExtension.ProcessMessage(SoapMessage 
message) 
at 
System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] 
extensions, Boolean throwOnException) 
at 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
 
message, WebResponse response, Stream responseStream, Boolean asyncCall) 
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters) 
--- End of inner exception stack trace --- 
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters) 
at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
methodName, Object[] parameters) 
at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, 
Object[] parameters) 
at Google.Api.Ads.AdWords.v201607.FeedItemService.get(Selector 
selector) 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2738306a-5bfb-4a78-b4ce-b83862d273f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to get a list of possible ProductDimensions with the AdWords API?

2016-11-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Alexander, 

You can get the list of shopping bidding categories using ConstantDataService 
getProductBiddingCategoryData 

 method. 
The GetProductCategoryTaxonomy 

 Java 
example demonstrates how to fetch a list of valid ProductBiddingCategories 
and print out each category node and its children. Examples in other 
languages are available here 
. 

Let me know if this is what you are looking for. 

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/538445cd-7fff-4c38-abea-5dfd0f7710e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to get client customer id of logged in user in js or in php

2016-11-23 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi,

To enable users to see their campaign data using your tool, you would need 
to follow these steps (assuming you already have a valid developer token):

1) User would need to create OAuth2 credentials 

 using 
one of the email addresses which is a valid user on the AdWords account 
that they are trying to target (and not the manager account). 

2) User configures the OAuth2 credentials information (client ID, 
clientSecret etc.) in your tool.

3) Using the information provided by the user and the developer token (that 
you already have), you can make a SOAP call to the AdWords API using one of 
our client libraries 
 or 
manually using this guide 
. To 
fetch the the clientCustomerId (i.e. the 10 digit target AdWords account 
ID) of the user you can use the CustomerService as explained in one of my 
previous responses.  

4) Since you have the clientCustomerId of the target AdWords account, you 
can use something like a CampaignService 

 to 
fetch campaigns associated with that account.
 
Just to reitreate, AdWords API does not support username/email and password 
based authentication. Please revert if you have more questions.

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/b59ae247-f9db-4f90-9392-810cdba9ce43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Frequently getting Stream closed error whe fetching ads for a Adgroup and for a given campaign

2016-11-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

The DownloadCriteriaReport 

 Java 
example demonstrates how to download a Criteria Performance Report using 
the API. Could you modify this example to download Ad Performance Report 
with the fields you require included in the report definition and let me 
know if this is successful? If it isn't, please provide the complete report 
definition used along with your clientCustomerId so I can further 
troubleshoot. 

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/5458119e-43ad-4330-b0a3-bc9ce2fe9a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to get a list of possible ProductDimensions with the AdWords API?

2016-11-23 Thread Alexander Nitschke
We implemented the RMF of creating and modifying ProductDimension trees 
with subdivisions and units long ago. However, specifying the tree is very 
awkward in our UI as the user has to enter everything manually. And I mean 
*everything*, from dimension value of product partition to refine its 
parent, up to writing down the caseValue of units, be it a Brand or a 
ProductOfferId. Now, of course no one would ever use our UI to create or 
modify the ProductDimension tree, it's done in AdWords and synched with our 
tool.

The AdWords UI allows to nicely select with some mouse clicks which 
dimension should be used to split up next, and most importantly, which 
values to specify for single biddable units. I think, knowledge of these 
structure datas is absolutely essental, but I didn't find API services 
which give me this information. I always thought this RMF was a total waste 
of time to implement (not only for us, but for everyone complying with RMF) 
to be blunt because it's just not possible to create an even remotely 
usable UI this way.

Since we want to delve deeper in the Shopping campaigns now, including 
attempts at better lead optimization, I am really curious (and hope so) if 
I made an oversight and those infos were out there all the time? Any help 
to get deeper product structure information is very appreciated. (And 
actually I feel this is a MUST in the API, since otherwise AdWords simply 
has an unfair advantage to competitors to put it this way.)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4ed9bb52-a33b-4405-b9b7-7853ce1814ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GetRefreshToken parse error unexpected {

2016-11-23 Thread 'Anthony Madrigal' via AdWords API Forum
Hi,

Could you make sure you are using PHP 5.3 or higher? If you are, please 
take a look at this post 
.
 
They give many ways to avoid this parsing error.

Regards,
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/883c94ed-6298-4299-940a-0b7f875f37dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mapping a display ad in Ad Performance Report to it's MediaBundle mediaId.

2016-11-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

Ad Performance Report doesn't yet provide the MediaIds associated with ads 
which are of type TEMPLATE_AD. The IDs of the logo image and marketing 
image used in ResponsiveDisplayAd are available through the 
EnhancedDisplayCreativeLogoImageMediaId and 
EnhancedDisplayCreativeMarketingImageMediaId fields respectively.

I'll go ahead and file a request for the MediaIds of Display Ads to be 
included in the Ad Performance Report. In the meantime, you need to use 
AdGroupAdService 

 to 
retrieve these details for template ads. Please keep an eye on our blog 

 for 
any announcements.

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/3de7539b-cd4c-42d5-b85a-2e943c96dee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Goggle adwords api unable to fetch video campaigns

2016-11-23 Thread 'Anthony Madrigal' via AdWords API Forum
Hi Brody,

It is still currently not possible to use CampaignService for video 
campaigns. You can filter campaigns in the Video Performance Report by 
adding a filter on campaign fields such as CampaignId and CampaignName 
.
 
You could also use the Campaign Performance Report to filter on video 
campaigns by using the predicate AdvertisingChannelType = VIDEO 

.

In the future, could you please create a new thread so that it is easier 
for us to track :)

You can get updates on the API by following our blog 
.

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/4f63e4af-7b32-4193-9348-23a859006065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Goggle adwords api unable to fetch video campaigns

2016-11-23 Thread Brody Humble
Has there been any update to this? We would like to be able to filter and 
select individual campaigns in the VIDEO_PERFORMANCE_REPORT but it is 
unclear if this is possible.

On Wednesday, November 25, 2015 at 12:48:28 PM UTC-6, Umesh Dengale wrote:
>
> Hello,
>
> The AdWords API v201509 does not support get and mutate operations for 
> the video campaigns. The API supports TrueView campaigns that have 
> migrated from AdWords for video, and several reports now include statistics 
> and new metrics for these campaigns. The new VIDEO_PERFORMANCE_REPORT 
> 
>  will give statistics for your account's upgraded AdWords for Video 
> campaigns.
>
> The video and multi-channel reporting changes 
>  
> section 
> of the release notes covers the video campaign related changes. Please 
> check release notes 
>  for complete 
> lists of changes and added features.
>
> Cheers,
> Umesh, 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/28070dfa-96a1-41db-aacb-de2bea320304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get list of all campaigns for a given customer Id.

2016-11-23 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi,

There is no provision to pass an AdWords account ID in your selector. As 
explained in my previous response, all you need to get started is to define 
your 10 digit AdWords account ID as the *clientCustomerId* in your local 
properties file 
.
 
If you prefer to pass the client customer ID at runtime, you can do so with 
an AdWords Session object 

 as 
follows:

AdWordsSession session = new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
session.setClientCustomerID("123-456-7890");

To select an individual campaign, you can use a predicate 

 such 
as follows:

Predicate predicate = new Predicate();
predicate.setField("CampaignId");
predicate.setOperator(PredicateOperator.EQUALS);
predicate.setValues(new String[]{"1234567890"});
selector.setPredicates(new Predicate[] {predicate});

The above code will add the following to your SOAP request XML: 

 
CampaignId 
EQUALS 
1234567890 


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/134ad389-e941-4480-ac44-00180e03a037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords ReportDownloadError.INVALID_VERSION. using .NET client library

2016-11-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Marianne,

The ReportDownloadError.INVALID_VERSION error occurs when you are using an 
API version which is sunset. Please refer to this guide 
 for 
information on deprecation schedules. Could you provide the version of .NET 
client library you are using along with the AdWords API version used while 
downloading the reports?

Thanks,
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/ffb52d11-8fc8-414e-a980-4dfdeb533c3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ip blocked

2016-11-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Mario,

You need to perform a CampaignCriterionService 

 REMOVE 
operation to remove the IpBlock 

 criterion 
from a campaign. The code should look like this:

  $campaignCriterionService =
  $user->GetService('CampaignCriterionService', ADWORDS_VERSION);
  $campaignCriteria = array();
  // Create operations.
  $operations = array();
  // Add a negative campaign criterion.
  $ipBlock = new IpBlock();
  $ipBlock->id = $criterionId;
  $negativeCriterion = new NegativeCampaignCriterion();
  $negativeCriterion->campaignId = $campaignId;
  $negativeCriterion->criterion = $ipBlock;
  $operations[] = new CampaignCriterionOperation($negativeCriterion, 
'REMOVE');
  // Make the mutate request.
  $result = $campaignCriterionService->mutate($operations);


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/84101390-4287-4b3b-9129-9367590204df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ananlytics conversions through Adwords API

2016-11-23 Thread 'Anthony Madrigal' via AdWords API Forum
Hi Roma,

The fields you mentioned are the only Analytics specific fields available 
in AdWords API. However, you can use ConversionTypeName 

 to 
get the Conversion Name and ExternalConversionSource 

 to 
determine whether the source was from Analytics.

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/2fb37c75-1bb7-4d65-ad18-8c85f4d0f093%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: update keyword's bidding not working

2016-11-23 Thread 'Anthony Madrigal' via AdWords API Forum
Hi,

CpcBidSource and BiddingStrategySource are read-only fields so they will be 
ignored when using them. However, if you set the Cpc bids for keywords they 
should turn to CRITERION level, which is not happening like you said. 
Because of this, could you please provide me with the SOAP request and 
response for this API call and the adgroup Id and keyword Id that you are 
trying to set through *reply privately to author*?

Thanks,
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/d050e3a5-3485-4eb8-966a-d79624e396fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GetRefreshToken parse error unexpected {

2016-11-23 Thread Api Noob
I get "Parse error:  syntax error, unexpected '{' in 
/homepages/32/d648207300/htdocs/api/adwords/examples/AdWords/Auth/GetRefreshToken.php
 
on line 78
for GetRefreshToken when I run the php in ssh. I checked php syntax 
checkers and they all said the file is fine
http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @packageGoogleApiAdsAdWords
 * @subpackage Auth
 * @category   WebServices
 * @copyright  2013, Google Inc. All Rights Reserved.
 * @licensehttp://www.apache.org/licenses/LICENSE-2.0 Apache License,
 * Version 2.0
 */
require_once dirname(__FILE__) . '/init.php';

/**
 * Gets an OAuth2 credential.
 * @param string $user the user that contains the client ID and secret
 * @return array the user's OAuth 2 credentials
 */
function GetOAuth2Credential($user) {
  $redirectUri = null;
  $offline = true;
  // Get the authorization URL for the OAuth2 token.
  // No redirect URL is being used since this is an installed application. 
A web
  // application would pass in a redirect URL back to the application,
  // ensuring it's one that has been configured in the API console.
  // Passing true for the second parameter ($offline) will provide us a 
refresh
  // token which can used be refresh the access token when it expires.
  $OAuth2Handler = $user->GetOAuth2Handler();
  $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl(
  $user->GetOAuth2Info(), $redirectUri, $offline);

  // In a web application you would redirect the user to the authorization 
URL
  // and after approving the token they would be redirected back to the
  // redirect URL, with the URL parameter "code" added. For desktop
  // or server applications, spawn a browser to the URL and then have the 
user
  // enter the authorization code that is displayed.
  printf("Log in to your AdWords account and open the following 
URL:\n%s\n\n",
  $authorizationUrl);
  print "After approving the token enter the authorization code here: ";
  $stdin = fopen('php://stdin', 'r');
  $code = trim(fgets($stdin));
  fclose($stdin);
  print "\n";

  // Get the access token using the authorization code. Ensure you use the 
same
  // redirect URL used when requesting authorization.
  $user->SetOAuth2Info(
$OAuth2Handler->GetAccessToken(
$user->GetOAuth2Info(), $code, $redirectUri));

  // The access token expires but the refresh token obtained for offline use
  // doesn't, and should be stored for later use.
  return $user->GetOAuth2Info();

}
// Don't run the example if the file is being included.
if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
  return;
}

try {
  // Get the client ID and secret from the auth.ini file. If you do not 
have a
  // client ID or secret, please create one of type "installed application" 
in
  // the Google API console: https://code.google.com/apis/console#access
  // and set it in the auth.ini file.
  $user = new AdWordsUser();
$user->LogAll();

  // Get the OAuth2 credential.
  $oauth2Info = GetOAuth2Credential($user);

  // Enter the refresh token into your auth.ini file.
  printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']);
  printf("In your auth.ini file, edit the refresh_token line to be:\n"
  . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']);
} catch (OAuth2Exception $e) {
  ExampleUtils::CheckForOAuth2Errors($e);
} catch (ValidationException $e) {
  ExampleUtils::CheckForOAuth2Errors($e);
} catch (Exception $e) {
  printf("An error has occurred: %s\n", $e->getMessage());
}




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/403c08d1-5375-4392-a666-4d60e60f3617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ananlytics conversions through Adwords API

2016-11-23 Thread Roma Vinogradov
So, our client linked his Google Analytics Account to Google Adwords 
account, and want to see conversions from GA in Adwords campaign report.


 On the picture above it named *"CTM Calls"* and *Source=Analytics*. But i 
checked all fields in Campaign Performance report 
,
 
and didn't find any metrics from Google Analytics exclude:

   - PercentNewVisitors
   - AverageFrequency
   - AveragePageviews
   - AverageTimeOnSite
   - BounceRate

In this case, do anybody help to find how can we pull metrics like this 
through Adwords API?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/534bbf84-32c5-4ea0-9473-7ec8bd3669ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Auction Insights Report

2016-11-23 Thread 'Anthony Madrigal' via AdWords API Forum
Hi guys,

Unfortunately, we still do not have an ETA on when this will be released 
and cannot say whether or not we will add this.

If you haven't already, you can follow our blog 
 for any 
announcements.

Regards,
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/e5e11bc0-65d7-4211-800d-fe6a89215a0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


update keyword's bidding not working

2016-11-23 Thread Wizard Meccup
Hi,

I try to set(update) keyword's bidding with BatchJobService on PHP.
I create several operation:

foreach ($keywordsData as $keywordData) {
// Create ad group criterion.
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $keywordData['adGroupId'];
$adGroupCriterion->criterion = new Criterion($keywordData['id'], 
'KEYWORD');

// Set bids (optional).
$bid = new CpcBid();
$bid->bid = new Money($keywordData['bid'] * self::MICRO_AMOUNT);
$bid->cpcBidSource = 'CRITERION';

$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC';
$biddingStrategyConfiguration->biddingStrategySource = 'CRITERION';

$cpcBiddingScheme = new ManualCpcBiddingScheme();
$cpcBiddingScheme->enhancedCpcEnabled = false;
$biddingStrategyConfiguration->biddingScheme = $cpcBiddingScheme;

$biddingStrategyConfiguration->bids[] = $bid;
$adGroupCriterion->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;

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

$operations[] = $operation;
}



There is one of operation:

[4] => AdGroupCriterionOperation Object
(
[operand] => BiddableAdGroupCriterion Object
(
[userStatus] =>
[systemServingStatus] =>
[approvalStatus] =>
[disapprovalReasons] =>
[destinationUrl] =>
[experimentData] =>
[firstPageCpc] =>
[topOfPageCpc] =>
[firstPositionCpc] =>
[qualityInfo] =>
[biddingStrategyConfiguration] => 
BiddingStrategyConfiguration Object
(
[biddingStrategyId] =>
[biddingStrategyName] =>
[biddingStrategyType] => MANUAL_CPC
[biddingStrategySource] => CRITERION
[biddingScheme] => ManualCpcBiddingScheme Object
(
[enhancedCpcEnabled] =>
[BiddingSchemeType] =>
[_parameterMap:BiddingScheme:private] => 
Array
(
[BiddingScheme.Type] => 
BiddingSchemeType
)

)

[bids] => Array
(
[0] => CpcBid Object
(
[bid] => Money Object
(
[microAmount] => 5130
[ComparableValueType] =>

[_parameterMap:ComparableValue:private] => Array
(

[ComparableValue.Type] => ComparableValueType
)

)

[cpcBidSource] => CRITERION
[BidsType] =>
[_parameterMap:Bids:private] => 
Array
(
[Bids.Type] => BidsType
)

)

)

)

[bidModifier] =>
[finalUrls] =>
[finalMobileUrls] =>
[finalAppUrls] =>
[trackingUrlTemplate] =>
[urlCustomParameters] =>
[adGroupId] => 8427124XXX
[criterionUse] =>
[criterion] => Criterion Object
(
[id] => 41399813XXX
[type] => KEYWORD
[CriterionType] =>
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)

)

[labels] =>
[forwardCompatibilityMap] =>
[baseCampaignId] =>
[baseAdGroupId] =>
[AdGroupCriterionType] =>
[_parameterMap:AdGroupCriterion:private] => Array
(
[AdGroupCriterion.Type] => AdGroupCriterionType
)

)

[exemptionRequests] =>
[operator] => SET
[OperationType] =>
[_paramet

Re: How to get list of all campaigns for a given customer Id.

2016-11-23 Thread ntdmbot01

I would like to fetch *all campaigns for a given account*.How to fetch 
account details i know, but how to fetch all the campaigns for a particular 
account I'm not getting.

I would like to pass account Id and get the list of campaigns under that 
account. ihope my question is clear.

Example: for accountcamapaign 
 123456789   123654789,etc

Please provide me selector for this.
 SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(CampaignField.Id, CampaignField.Name, CampaignField.Status, 
CampaignField.CampaignTrialType)
.equals (what to be passed here ,123456789)

On Tuesday, November 22, 2016 at 2:53:44 PM UTC-6, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi,
>
> In order to fetch data from a particular account, please ensure that the 
> 10 digit AdWords account ID for that account is defined against the 
> property *clientCustomerId* in your properties file. As an example, if 
> you use the Java client library, you would need to define the relevant 
> account ID here 
> .
>  
>  If you prefer to use an AdWords session object (instead of properties 
> file, as mentioned here 
> ),
>  
> you would need to update the value of the variable to the respective 
> account ID. Once you have the account ID defined correctly, you should be 
> able to fetch relevant data from that account. Lastly, please ensure that 
> you use your AdWords client account ID (and not the manager account ID) as 
> the clientCustomerId when trying to fetch campaings related information for 
> an account. 
>
> 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/43d51f6d-1f4a-42d7-9282-ce2bd316daee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: shopping campaigns - how to assemble Ad Group with bids per item id

2016-11-23 Thread oneteste . sem
Hello,

Your tips were very important. Apparently it worked perfectly.

Thank you very much.

Em quinta-feira, 10 de novembro de 2016 00:35:46 UTC-2, Joyce Lava escreveu:
>
> Hello,
>
> To update the bids of each itemId, you may go through this previous forum 
> discussion 
> 
>  and 
> let me know if this helps.
>
> You would have to generate the Product Partition Report 
> 
>  to 
> get the Id 
> 
>  of 
> the items and set that as the productPartitionId when calling the *SET* 
> operator 
> of the AdGroupCriterionService.mutate with BiddableAdGroupCriterion. I 
> recommend trying it first against a test account.
>
> Regards,
> Joyce, 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/e7521f1b-300e-4aad-8e57-4ae151509ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Frequently getting Stream closed error whe fetching ads for a Adgroup and for a given campaign

2016-11-23 Thread ntdmbot01
Hi,
I'm not using any stream  i just have a select query from ad performance 
report and after running for a while it gives this error.
i have 73 campaigns and for each campaign around 10 adgroups and for each 
adgroup around 18 ads, so when it runs afetr few minutes it throws the 
error.

On Tuesday, November 22, 2016 at 12:23:36 PM UTC-6, Shwetha Vastrad 
(AdWords API Team) wrote:
>
> Hi,
>
> Are you using the GetTextAds 
> 
>  or 
> the GetExpandedTextAds 
> 
>  examples 
> from the Java client library? Could you also recheck your code that you are 
> not reading a stream that has already been closed? Also, "Name" isn't a 
> valid field for AdGroupAdService 
> 
>  selector. 
>
> Thanks,
> 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/7ee60db3-bd25-47c0-a66a-152c90f904ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mapping a display ad in Ad Performance Report to it's MediaBundle mediaId.

2016-11-23 Thread Parander
When using the Ad Performance Report on ad's which are of the type TEMPLATE_AD 
(Display Ad) there's no field to map an ad to a mediaId(?). The mediaId 
here refers to the data you can get from MediaService.

The only thing I can find right now is the Headline attribute which seems 
to be a string composed of the bundle .zip filename + the dimensions of the 
ad. However I'm assuming that bundle filenames are not unique so using this 
to map results between Ad Performance Report and MediaBundle might be 
ambiguous?

Basically what I would like is a field in the Ad Performance Report which 
tells me (for TEMPLATE_AD type) which MediaBundle's mediaId it refers to 
(if applicable). Is this perhaps already possible to do, or if not can it 
be added to a future version of the API?


BRs


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3ea6f9a6-6862-42f9-b242-1f3e74c27d80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWords ReportDownloadError.INVALID_VERSION. using .NET client library

2016-11-23 Thread Marianne Hammer Larsen

Hi

I'm trying to get the .NET client library code samples to return a criteria 
performance report but can't get the code to function. I'm getting an error 
when clicking the "Download Criteria Report button" on the 
AdWords.Examples.CSharp.OAuth test page.
The error is as following:

System.Net.HttpWebRequest.GetResponse() +1399
   Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReport(String 
downloadUrl, String postBody) in 
C:\Development\Projects\google.adwords.api\src\AdWords\Util\Reports\New\ReportUtilities.cs:183

[AdWordsReportsException: AdWordsReportsException: One or more AdWords Report 
download errors have occurred. 

ReportDownloadError.INVALID_VERSION. (Error: 
ReportDownloadError.INVALID_VERSION, FieldPath: , Trigger: )

]
   Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReport(String 
downloadUrl, String postBody) in 
C:\Development\Projects\google.adwords.api\src\AdWords\Util\Reports\New\ReportUtilities.cs:204
   Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetReport() in 
C:\Development\Projects\google.adwords.api\src\AdWords\Util\Reports\New\ReportUtilities.cs:166
   Google.Api.Ads.Common.Util.Reports.AdsReportUtilities.GetResponse() in 
C:\Development\Projects\google.adwords.api\src\Common\Util\Reports\AdsReportUtilities.cs:162
   Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.GetResponse() in 
C:\Development\Projects\google.adwords.api\src\AdWords\Util\Reports\New\ReportUtilities.cs:310
   
Google.Api.Ads.AdWords.Examples.CSharp.OAuth.Default.OnDownloadReportButtonClick(Object
 sender, EventArgs eventArgs) in 
C:\Development\Projects\google.adwords.api\examples\AdWords\csharp\oauth\Default.aspx.cs:100

[ApplicationException: Failed to download report.]
   
Google.Api.Ads.AdWords.Examples.CSharp.OAuth.Default.OnDownloadReportButtonClick(Object
 sender, EventArgs eventArgs) in 
C:\Development\Projects\google.adwords.api\examples\AdWords\csharp\oauth\Default.aspx.cs:104
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9712662
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 
+204
   
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
 eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, 
String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 

   System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639 

What am i missing or doing wrong?

My main goal is to retrieve an XML feed that i can display on a webpage.

Regards 
Marianne

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0e040199-ec2b-416d-a1e1-fbdab339091e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ip blocked

2016-11-23 Thread Mario Rossi
hi all

how can i remove the ip that i have blocked in a campaign using google api 
adwords php

thx

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6920fed1-d31a-4ccb-b8fc-62d83e073146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get list of all campaigns for a given customer Id.

2016-11-23 Thread ntdmbot01
Please let me know with an example in selector for campaign how to pass the 
clientCustomerId and fetch the values.
in equals condition what need to be passed please let me know.

// Create selector.
   SelectorBuilder builder = new SelectorBuilder();
   Selector selector = builder
   .fields(CampaignField.Id, CampaignField.Name, CampaignField.Status, 
CampaignField.CampaignTrialType)
  // .equals(customerId, "429-320-4263")
   .orderAscBy(CampaignField.Name)
   .offset(offset)
   .limit(PAGE_SIZE)
  
   .build();

On Tuesday, November 22, 2016 at 2:53:44 PM UTC-6, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi,
>
> In order to fetch data from a particular account, please ensure that the 
> 10 digit AdWords account ID for that account is defined against the 
> property *clientCustomerId* in your properties file. As an example, if 
> you use the Java client library, you would need to define the relevant 
> account ID here 
> .
>  
>  If you prefer to use an AdWords session object (instead of properties 
> file, as mentioned here 
> ),
>  
> you would need to update the value of the variable to the respective 
> account ID. Once you have the account ID defined correctly, you should be 
> able to fetch relevant data from that account. Lastly, please ensure that 
> you use your AdWords client account ID (and not the manager account ID) as 
> the clientCustomerId when trying to fetch campaings related information for 
> an account. 
>
> 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/ad6274b5-cc1b-45a0-846b-dacb2310ce39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.