Re: Upload Offline Conversion migration to V9

2022-02-15 Thread MWA
Someone please help me.

On Monday, February 14, 2022 at 8:19:01 PM UTC+5 MWA wrote:

> Hello,
> I used to upload offline conversion using following code in v201809 
> version as provided at
>
> https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/Remarketing/UploadOfflineConversions.php
>
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->enablePartialFailure()->build();
>
> $adWordsServices = new AdWordsServices();
> $offlineConversionService = $adWordsServices->get($session, 
> OfflineConversionFeedService::class);
> $conversionName="OfflineConv";
> $feed = new OfflineConversionFeed();
> $feed->setConversionName($conversionName);
> $feed->setConversionTime($conversionTime);
> $feed->setConversionValue($conversionValue);
> $feed->setGoogleClickId($gclid);
>
> $offlineConversionOperation = new OfflineConversionFeedOperation();
> $offlineConversionOperation->setOperator(Operator::ADD);
> $offlineConversionOperation->setOperand($feed);
> $offlineConversionOperations = [$offlineConversionOperation];
> $result = $offlineConversionService->mutate($offlineConversionOperations);
>
>
> Now I am upgrading to V9, I have used the code as provided at
>
> https://github.com/googleads/google-ads-php/blob/main/examples/Remarketing/UploadOfflineConversion.php
>
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
> $googleAdsClient = (new 
> GoogleAdsClientBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->build();
>
> //$conversionName="OfflineConv";
> $conversionName = ConversionActionType::WEBPAGE;
> $clickConversion = new ClickConversion([
> 'conversion_action' => ResourceNames::forConversionAction($customerId, 
> $conversionName),
> 'gclid' => $gclid,
> 'conversion_value' => $conversionValue,
> 'conversion_date_time' => $conversionTime,
> 'currency_code' => 'USD'
> ]);
> $conversionUploadServiceClient = 
> $googleAdsClient->getConversionUploadServiceClient();
> $result = 
> $conversionUploadServiceClient->uploadClickConversions($customerid, 
> [$clickConversion], true);
>
> The problem is when we set $conversionName="OfflineConv"; we get following 
> error.
> Resource name 'customers/902538 
> <(902)%20538->/conversionActions/OfflineConv' 
> is malformed: expected 
> 'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}'.,
>  
> at conversions[0].conversion_action
>
> and when we set $conversionName = ConversionActionType::WEBPAGE; we get 
> following error.
> This customer does not have an import conversion action that matches the 
> conversion action provided., at conversions[0].conversion_action
>
> Can someone help me?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/852a9c15-8da1-4941-8fd3-56ea7db6092fn%40googlegroups.com.


Upload Offline Conversion migration to V9

2022-02-14 Thread MWA
Hello,
I used to upload offline conversion using following code in v201809 version 
as provided at
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/Remarketing/UploadOfflineConversions.php

$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->enablePartialFailure()->build();

$adWordsServices = new AdWordsServices();
$offlineConversionService = $adWordsServices->get($session, 
OfflineConversionFeedService::class);
$conversionName="OfflineConv";
$feed = new OfflineConversionFeed();
$feed->setConversionName($conversionName);
$feed->setConversionTime($conversionTime);
$feed->setConversionValue($conversionValue);
$feed->setGoogleClickId($gclid);

$offlineConversionOperation = new OfflineConversionFeedOperation();
$offlineConversionOperation->setOperator(Operator::ADD);
$offlineConversionOperation->setOperand($feed);
$offlineConversionOperations = [$offlineConversionOperation];
$result = $offlineConversionService->mutate($offlineConversionOperations);


Now I am upgrading to V9, I have used the code as provided at
https://github.com/googleads/google-ads-php/blob/main/examples/Remarketing/UploadOfflineConversion.php

$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
$googleAdsClient = (new 
GoogleAdsClientBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->build();

//$conversionName="OfflineConv";
$conversionName = ConversionActionType::WEBPAGE;
$clickConversion = new ClickConversion([
'conversion_action' => ResourceNames::forConversionAction($customerId, 
$conversionName),
'gclid' => $gclid,
'conversion_value' => $conversionValue,
'conversion_date_time' => $conversionTime,
'currency_code' => 'USD'
]);
$conversionUploadServiceClient = 
$googleAdsClient->getConversionUploadServiceClient();
$result = 
$conversionUploadServiceClient->uploadClickConversions($customerid, 
[$clickConversion], true);

The problem is when we set $conversionName="OfflineConv"; we get following 
error.
Resource name 'customers/902538/conversionActions/OfflineConv' is 
malformed: expected 
'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}'.,
 
at conversions[0].conversion_action

and when we set $conversionName = ConversionActionType::WEBPAGE; we get 
following error.
This customer does not have an import conversion action that matches the 
conversion action provided., at conversions[0].conversion_action

Can someone help me?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/95fb5256-9e29-4cd9-b372-d4b8482750c5n%40googlegroups.com.


Re: Revoking invitations

2020-07-02 Thread MWA
Found the problem,

API is working fine, but on web interface request takes an hour or so to 
disappear the request, when I request again then NO_PENDING_INVITATION 
error occurs because the request was fulfilled first time only request 
doesn't go way on website, it would be great help if you look into this and 
remove the request from web interface ASAP too.

Thanks.

On Monday, June 22, 2020 at 6:49:07 PM UTC+5, MWA wrote:
>
> Hi,
>
> I want to revoke the invitation via API. My code is
>
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
>
>
> $session = (new AdWordsSessionBuilder())->fromFile()->withOAuth2Credential
> ($oAuth2Credential)->build();
>
>
> $adWordsServices=new AdWordsServices();
>
>
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
>
> $link = new ManagedCustomerLink();
> $link->setClientCustomerId($customerid);
> $link->setLinkStatus(LinkStatus::CANCELLED);
> $link->setManagerCustomerId(ADWORDS_MANAGER_ID);
>
>
> $linkop = new LinkOperation();
> $linkop->setOperand($link);
> $linkop->setOperator(Operator::SET);
>
>
> $operations = array($linkop);
>
>
> try{
>  $result = $managedCustomerService->mutateLink($operations);
>  print_r($result);
> }catch(ApiException $e){
>  print_r($e->getErrors());
> }
>
> But I'm receiving error.
>
>
> Array
> (
> [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerServiceError 
> Object
> (
> [reason:protected] => NO_PENDING_INVITATION
> [customerIds:protected] =>
> [fieldPath:protected] => operations[0]
> [fieldPathElements:protected] => Array
> (
> [0] => Google\AdsApi\AdWords\v201809\cm\
> FieldPathElement Object
> (
> [field:protected] => operations
> [index:protected] => 0
> )
>
>
> )
>
>
> [trigger:protected] =>
> [errorString:protected] => ManagedCustomerServiceError.
> NO_PENDING_INVITATION
> [ApiErrorType:protected] => ManagedCustomerServiceError
> [parameterMap:Google\AdsApi\AdWords\v201809\cm\ApiError:
> private] => Array
> (
> [ApiError.Type] => ApiErrorType
> )
>
>
> )
>
>
> )
>
> And I'm sure there is pending link request which I can see in Sub-account 
> settings.
>
> P.S: I've checked
>
> https://developers.google.com/adwords/api/docs/guides/accounts-overview#rescinding_invitations
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/35cc3e79-5e29-4184-898b-251fcc011b02o%40googlegroups.com.


Revoking invitations

2020-06-22 Thread MWA
Hi,

I want to revoke the invitation via API. My code is

$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();


$session = (new AdWordsSessionBuilder())->fromFile()->withOAuth2Credential(
$oAuth2Credential)->build();


$adWordsServices=new AdWordsServices();


$managedCustomerService = $adWordsServices->get($session, 
ManagedCustomerService::class);


$link = new ManagedCustomerLink();
$link->setClientCustomerId($customerid);
$link->setLinkStatus(LinkStatus::CANCELLED);
$link->setManagerCustomerId(ADWORDS_MANAGER_ID);


$linkop = new LinkOperation();
$linkop->setOperand($link);
$linkop->setOperator(Operator::SET);


$operations = array($linkop);


try{
 $result = $managedCustomerService->mutateLink($operations);
 print_r($result);
}catch(ApiException $e){
 print_r($e->getErrors());
}

But I'm receiving error.


Array
(
[0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerServiceError 
Object
(
[reason:protected] => NO_PENDING_INVITATION
[customerIds:protected] =>
[fieldPath:protected] => operations[0]
[fieldPathElements:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201809\cm\FieldPathElement
 Object
(
[field:protected] => operations
[index:protected] => 0
)


)


[trigger:protected] =>
[errorString:protected] => ManagedCustomerServiceError.
NO_PENDING_INVITATION
[ApiErrorType:protected] => ManagedCustomerServiceError
[parameterMap:Google\AdsApi\AdWords\v201809\cm\ApiError:private]
 => Array
(
[ApiError.Type] => ApiErrorType
)


)


)

And I'm sure there is pending link request which I can see in Sub-account 
settings.

P.S: I've checked
https://developers.google.com/adwords/api/docs/guides/accounts-overview#rescinding_invitations

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e3325365-b625-49af-940f-5dfbe1aa9bfbo%40googlegroups.com.


Re: Download Call Extensions data

2017-11-07 Thread MWA
Thank you for clarification, I have one more related question, how do I 
download the ad URL? I have tried using CampaignExtensionSettingService, 
AdGroupAdService services
and PLACEHOLDER_FEED_ITEM_REPORT, AD_PERFORMANCE_REPORT, 
CLICK_PERFORMANCE_REPORT reports, neither of them are providing the ad URL 
for call extension ad. 

On Thursday, November 2, 2017 at 6:20:05 PM UTC+5, MWA wrote:
>
> Hi, 
>
> I'm trying to download call extensions from my account via code given below
>
>
> $oAuth2Credential = (new 
> OAuth2TokenBuilder())->fromFile()->build();
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->build();
>
> $adWordsServices=new AdWordsServices();
> $adGroupAdService = $adWordsServices->get($session, 
> AdGroupAdService::class);
> 
> $selector = new Selector();
> 
> $selectorFields = array('Id', 'AdGroupId', 'BaseAdGroupId', 
> 'BaseCampaignId', 'Status', 'DisplayUrl', 'Headline', 'Description1', 
> 'Description2', 'ImageCreativeName', 'MobileAdDescription', 
> 'MobileAdMarkupLanguages', 'MobileAdMobileCarriers', 
> 'MobileAdBusinessName', 'MobileAdCountryCode', 'MobileAdPhoneNumber', 
> 'MediaId', 'Dimensions', 'Urls', 'MimeType', 'SourceUrl', 'FileSize', 
> 'CreationTime', 'ReferenceId', 'TemplateId', 'TemplateAdUnionId', 
> 'UniqueName', 'TemplateElementFieldName', 'TemplateElementFieldType', 
> 'TemplateElementFieldText', 'CreativeFinalUrls', 'CreativeFinalMobileUrls', 
> 'CreativeFinalAppUrls', 'HeadlinePart1', 'HeadlinePart2', 'Description', 
> 'Path1', 'Path2');
> $selector->setFields($selectorFields);
> $selector->setOrdering([new OrderBy('Id', SortOrder::ASCENDING)]);
> $selector->setPaging(new Paging(0, PAGE_SIZE));
>
>
> $selector->setPredicates([new Predicate('Status', 
> PredicateOperator::IN, ['ENABLED', 'PAUSED', 'DISABLED'])]);
>
> $dateRange = new DateRange();
> $dateRange->setMin(date('Ymd', strtotime($sdt)));
> $dateRange->setMax(date('Ymd', strtotime($edt)));
> $selector->setDateRange($dateRange);
> 
> $selector->setPredicates([new Predicate('AdType', 
> PredicateOperator::EQUALS, ['CALL_ONLY_AD'])]);
> $page = $adGroupAdService->get($selector);
>
>
>
> But API is returning nothing
>
> Google\AdsApi\AdWords\v201708\cm\AdGroupAdPage Object
> (
> [entries:protected] => 
> [totalNumEntries:protected] => 0
> [PageType:protected] => AdGroupAdPage
> [parameterMap:Google\AdsApi\AdWords\v201708\cm\Page:private] => Array
> (
> [Page.Type] => PageType
> )
>
> )
>
>
>
> And also report is not returning any data
>
> My report query
>
> SELECT 
> Id,AdGroupId,CampaignId,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,
> ConversionRate, CostPerConversion,AdNetworkType1
> FROM AD_PERFORMANCE_REPORT
> WHERE AdType=CALL_ONLY_AD  AND Status IN [DISABLED, ENABLED, PAUSED] 
> AND Clicks>0 
> DURING 20171031,20171031
>
>
> Please help what's wrong with this.
>
> P.S: Ad Extension snapshot from my account is attached.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b1fe9157-9039-4653-8bf6-04f787c4dfe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Download Call Extensions data

2017-11-03 Thread MWA
Ok thanks. One related question more, if someone taps on call extension ad 
on mobile devices and make a call then this click will be available 
on CLICK_PERFORMANCE_REPORT or not?

On Thursday, November 2, 2017 at 6:20:05 PM UTC+5, MWA wrote:
>
> Hi, 
>
> I'm trying to download call extensions from my account via code given below
>
>
> $oAuth2Credential = (new 
> OAuth2TokenBuilder())->fromFile()->build();
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->build();
>
> $adWordsServices=new AdWordsServices();
> $adGroupAdService = $adWordsServices->get($session, 
> AdGroupAdService::class);
> 
> $selector = new Selector();
> 
> $selectorFields = array('Id', 'AdGroupId', 'BaseAdGroupId', 
> 'BaseCampaignId', 'Status', 'DisplayUrl', 'Headline', 'Description1', 
> 'Description2', 'ImageCreativeName', 'MobileAdDescription', 
> 'MobileAdMarkupLanguages', 'MobileAdMobileCarriers', 
> 'MobileAdBusinessName', 'MobileAdCountryCode', 'MobileAdPhoneNumber', 
> 'MediaId', 'Dimensions', 'Urls', 'MimeType', 'SourceUrl', 'FileSize', 
> 'CreationTime', 'ReferenceId', 'TemplateId', 'TemplateAdUnionId', 
> 'UniqueName', 'TemplateElementFieldName', 'TemplateElementFieldType', 
> 'TemplateElementFieldText', 'CreativeFinalUrls', 'CreativeFinalMobileUrls', 
> 'CreativeFinalAppUrls', 'HeadlinePart1', 'HeadlinePart2', 'Description', 
> 'Path1', 'Path2');
> $selector->setFields($selectorFields);
> $selector->setOrdering([new OrderBy('Id', SortOrder::ASCENDING)]);
> $selector->setPaging(new Paging(0, PAGE_SIZE));
>
>
> $selector->setPredicates([new Predicate('Status', 
> PredicateOperator::IN, ['ENABLED', 'PAUSED', 'DISABLED'])]);
>
> $dateRange = new DateRange();
> $dateRange->setMin(date('Ymd', strtotime($sdt)));
> $dateRange->setMax(date('Ymd', strtotime($edt)));
> $selector->setDateRange($dateRange);
> 
> $selector->setPredicates([new Predicate('AdType', 
> PredicateOperator::EQUALS, ['CALL_ONLY_AD'])]);
> $page = $adGroupAdService->get($selector);
>
>
>
> But API is returning nothing
>
> Google\AdsApi\AdWords\v201708\cm\AdGroupAdPage Object
> (
> [entries:protected] => 
> [totalNumEntries:protected] => 0
> [PageType:protected] => AdGroupAdPage
> [parameterMap:Google\AdsApi\AdWords\v201708\cm\Page:private] => Array
> (
> [Page.Type] => PageType
> )
>
> )
>
>
>
> And also report is not returning any data
>
> My report query
>
> SELECT 
> Id,AdGroupId,CampaignId,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,
> ConversionRate, CostPerConversion,AdNetworkType1
> FROM AD_PERFORMANCE_REPORT
> WHERE AdType=CALL_ONLY_AD  AND Status IN [DISABLED, ENABLED, PAUSED] 
> AND Clicks>0 
> DURING 20171031,20171031
>
>
> Please help what's wrong with this.
>
> P.S: Ad Extension snapshot from my account is attached.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fca1f18f-fa34-4cfb-b4b4-010d74eeca2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Download Call Extensions data

2017-11-02 Thread MWA
Hi thank you for replying.

Please tell me PLACEHOLDER_FEED_ITEM_REPORT report is real time, mean if a 
click occurs and I download report within a minute that click will be 
available in this report or not? if not how often this report is being 
updated?

On Thursday, November 2, 2017 at 7:34:49 PM UTC+5, Shwetha Vastrad (AdWords 
API Team) wrote:
>
> Hi, 
>
> AdGroupAdService 
> 
>  and Ad Performance Report 
> 
>  are 
> used to manage and retrieve the Ads in your account, not Ad extensions. I 
> see that your Call Extensions are at the Campaign level. You need to use 
> CampaignExtensionSettingService 
> 
>  to 
> retrieve the extensions available at the campaign level. To retrieve 
> extensions defined at the account or AdGroup level, you need to use 
> CustomerExtensionSettingService 
> 
>  and AdGroupExtensionSettingService 
> 
>  respectively. 
> If you would like to retrieve these extensions using AdWords API reports, I 
> would suggest that you download a Placeholder Feed Item Report 
> 
>  which 
> includes all statistics at the feed-item level. Please try this out and let 
> me know if you are able to retrieve your Ad extensions successfully.
>
> 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/3e80c441-6a85-4039-80ac-7e4c80038111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Download Call Extensions data

2017-11-02 Thread MWA
Hi, 

I'm trying to download call extensions from my account via code given below


$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile()->build();
$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->build();

$adWordsServices=new AdWordsServices();
$adGroupAdService = $adWordsServices->get($session, 
AdGroupAdService::class);

$selector = new Selector();

$selectorFields = array('Id', 'AdGroupId', 'BaseAdGroupId', 
'BaseCampaignId', 'Status', 'DisplayUrl', 'Headline', 'Description1', 
'Description2', 'ImageCreativeName', 'MobileAdDescription', 
'MobileAdMarkupLanguages', 'MobileAdMobileCarriers', 
'MobileAdBusinessName', 'MobileAdCountryCode', 'MobileAdPhoneNumber', 
'MediaId', 'Dimensions', 'Urls', 'MimeType', 'SourceUrl', 'FileSize', 
'CreationTime', 'ReferenceId', 'TemplateId', 'TemplateAdUnionId', 
'UniqueName', 'TemplateElementFieldName', 'TemplateElementFieldType', 
'TemplateElementFieldText', 'CreativeFinalUrls', 'CreativeFinalMobileUrls', 
'CreativeFinalAppUrls', 'HeadlinePart1', 'HeadlinePart2', 'Description', 
'Path1', 'Path2');
$selector->setFields($selectorFields);
$selector->setOrdering([new OrderBy('Id', SortOrder::ASCENDING)]);
$selector->setPaging(new Paging(0, PAGE_SIZE));


$selector->setPredicates([new Predicate('Status', 
PredicateOperator::IN, ['ENABLED', 'PAUSED', 'DISABLED'])]);

$dateRange = new DateRange();
$dateRange->setMin(date('Ymd', strtotime($sdt)));
$dateRange->setMax(date('Ymd', strtotime($edt)));
$selector->setDateRange($dateRange);

$selector->setPredicates([new Predicate('AdType', 
PredicateOperator::EQUALS, ['CALL_ONLY_AD'])]);
$page = $adGroupAdService->get($selector);



But API is returning nothing

Google\AdsApi\AdWords\v201708\cm\AdGroupAdPage Object
(
[entries:protected] => 
[totalNumEntries:protected] => 0
[PageType:protected] => AdGroupAdPage
[parameterMap:Google\AdsApi\AdWords\v201708\cm\Page:private] => Array
(
[Page.Type] => PageType
)

)



And also report is not returning any data

My report query

SELECT 
Id,AdGroupId,CampaignId,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,
ConversionRate, CostPerConversion,AdNetworkType1
FROM AD_PERFORMANCE_REPORT
WHERE AdType=CALL_ONLY_AD  AND Status IN [DISABLED, ENABLED, PAUSED] 
AND Clicks>0 
DURING 20171031,20171031


Please help what's wrong with this.

P.S: Ad Extension snapshot from my account is attached.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b718ddd-76fe-460b-9bd9-088800c0bed2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


OfflineConversionFeed Error

2017-10-23 Thread MWA
Hi,

I'm trying to push offline conversion on behalf of my clients.


$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile()->build();

$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->enablePartialFailure()->build();

$adWordsServices=new AdWordsServices();
$offlineConversionService = $adWordsServices->get($session, 
OfflineConversionFeedService::class);

$feed = new OfflineConversionFeed();
$feed->setConversionName($conversionName);
$feed->setConversionTime($conversionTime);
$feed->setConversionValue($conversionValue);
$feed->setGoogleClickId($gclid);
$offlineConversionOperation = new 
OfflineConversionFeedOperation();
$offlineConversionOperation->setOperator(Operator::ADD);
$offlineConversionOperation->setOperand($feed);
$offlineConversionOperations = [$offlineConversionOperation];

$result = 
$offlineConversionService->mutate($offlineConversionOperations);



With other clients above code is working perfectly fine, but with some 
specific clients it doesn't work. The Error is

Google\AdsApi\AdWords\v201708\cm\OfflineConversionFeedReturnValue Object
(
[value:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201708\cm\OfflineConversionFeed Object
(
[googleClickId:protected] => 
[conversionName:protected] => 
[conversionTime:protected] => 
[conversionValue:protected] => 
[conversionCurrencyCode:protected] => 
[externalAttributionCredit:protected] => 
[externalAttributionModel:protected] => 
)

)

[partialFailureErrors:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201708\cm\OfflineConversionError Object
(
[reason:protected] => UNAUTHORIZED_USER
[fieldPath:protected] => operations[0].operand
[fieldPathElements:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201708\cm\FieldPathElement Object
(
[field:protected] => operations
[index:protected] => 0
)

[1] => Google\AdsApi\AdWords\v201708\cm\FieldPathElement Object
(
[field:protected] => operand
[index:protected] => 
)

)

[trigger:protected] => 
[errorString:protected] => OfflineConversionError.UNAUTHORIZED_USER
[ApiErrorType:protected] => OfflineConversionError
[parameterMap:Google\AdsApi\AdWords\v201708\cm\ApiError:private] => Array
(
[ApiError.Type] => ApiErrorType
)

)

)

[ListReturnValueType:protected] => OfflineConversionFeedReturnValue
[parameterMap:Google\AdsApi\AdWords\v201708\cm\ListReturnValue:private] => 
Array
(
[ListReturnValue.Type] => ListReturnValueType
)

)


I have access these clients in my MCM account. 

Can anyone help with this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4ce42045-3602-4d95-bc09-db528a6203f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error Handling in new Adwords API v201708

2017-10-17 Thread MWA
I got it, I didn't added *use 
Google\AdsApi\AdWords\v201708\cm\ApiException;* now its working.

Thanks.

On Friday, October 13, 2017 at 5:57:07 PM UTC+5, MWA wrote:
>
> Hi,
> Can anyone tell me how to handle errors on new Adwords API v201708?
> Here is my code, I can not catch exception I've tried these possibilities.
> My code is working fine but if there is an error I want to handle it.
>
> Code:
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
> 
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->enablePartialFailure()->build();
>
> $adWordsServices=new AdWordsServices();
> 
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
> $link = new ManagedCustomerLink();
> $link->setManagerCustomerId($managerid);
> $link->setClientCustomerId($customerid);
> $link->setLinkStatus(LinkStatus::PENDING);
>
> $linkop = new LinkOperation();
> $linkop->setOperator(Operator::ADD);
> $linkop->setOperand($link);
>
> $operations = array($linkop);
> 
> try{
> $result = $managedCustomerService->mutateLink($operations);
> }catch(AdwordsApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(Exception $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(ApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }
>
> Error:
>
> *Fatal error*: Uncaught exception 
> 'Google\AdsApi\AdWords\v201708\cm\ApiException' with message 
> '[ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER @ 
> operations[0]]' in 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
>  
> Stack trace: #0 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
>  
> ReflectionClass->newInstanceArgs(Array) #1 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(165):
>  
> Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...', 
> '[ManagedCustome...') #2 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(130):
>  
> Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
>  
> #3 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201708/mcm/ManagedCustomerService.php(185):
>  
> Google\AdsApi\Common\AdsSoapClient->__soapCall('mutateLink', Array in 
> */var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php*
>  
> on line *39*
>
>
>
> 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/bbbe4551-5a83-4ff6-abbc-26a84a2ff10b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error Handling in new Adwords API v201708

2017-10-17 Thread MWA
If I apply try catch on get service nothing changes.

 try{
$page = $campaignService->get($selector);
}
catch (ApiException $apiException) {
print_r($apiException);
}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fe2552ee-d480-43fd-8a98-2a04433d8073%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error Handling in new Adwords API v201708

2017-10-17 Thread MWA
I've imported namespaces correctly. If I provide customerid which I have 
currently access, it works fine, but when i try to access data of my 
ex-client (which of course I don't have access) the code breaks and the 
whole crons stops. I want to catch the exception so that I can download 
clients data which I have currently access and of course notify me that 
someone has left so I can stop that client's data downloading.

namespace Google\AdsApi\Examples\AdWords\v201708\BasicOperations;
ini_set("display_errors",1);
require __DIR__ . '/vendor/autoload.php';
use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201708\cm\CampaignService;
use Google\AdsApi\AdWords\v201708\cm\OrderBy;
use Google\AdsApi\AdWords\v201708\cm\Paging;
use Google\AdsApi\AdWords\v201708\cm\Predicate;
use Google\AdsApi\AdWords\v201708\cm\PredicateOperator;
use Google\AdsApi\AdWords\v201708\cm\Selector;
use Google\AdsApi\AdWords\v201708\cm\SortOrder;
use Google\AdsApi\Common\OAuth2TokenBuilder;


$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();

$error=false;
try{
$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->enablePartialFailure()->build();
}
catch(ApiException $apiException) {
print_r($apiException);
}

$adWordsServices=new AdWordsServices();
$campaignService = $adWordsServices->get($session, 
CampaignService::class);

$selector = new Selector();
$Fields = array('Id', 'StartDate', 'EndDate', 'Name', 'Amount', 
'DeliveryMethod', 'ServingStatus', 'FrequencyCapMaxImpressions', 
'AdServingOptimizationStatus', 'TimeUnit', 'Level', 'Status', 
'BiddingStrategyType');
$selector->setFields($Fields);
$selector->setOrdering([new OrderBy('Name', SortOrder::ASCENDING)]);
$selector->setPaging(new Paging(0, 5000));
$totalNumEntries = 0;
$icount=0;

$selector->setPredicates([new Predicate('Status', 
PredicateOperator::IN, ['ENABLED', 'PAUSED', 'REMOVED'])]);

$page = $campaignService->get($selector);






On Friday, October 13, 2017 at 5:57:07 PM UTC+5, MWA wrote:
>
> Hi,
> Can anyone tell me how to handle errors on new Adwords API v201708?
> Here is my code, I can not catch exception I've tried these possibilities.
> My code is working fine but if there is an error I want to handle it.
>
> Code:
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
> 
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->enablePartialFailure()->build();
>
> $adWordsServices=new AdWordsServices();
> 
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
> $link = new ManagedCustomerLink();
> $link->setManagerCustomerId($managerid);
> $link->setClientCustomerId($customerid);
> $link->setLinkStatus(LinkStatus::PENDING);
>
> $linkop = new LinkOperation();
> $linkop->setOperator(Operator::ADD);
> $linkop->setOperand($link);
>
> $operations = array($linkop);
> 
> try{
> $result = $managedCustomerService->mutateLink($operations);
> }catch(AdwordsApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(Exception $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(ApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }
>
> Error:
>
> *Fatal error*: Uncaught exception 
> 'Google\AdsApi\AdWords\v201708\cm\ApiException' with message 
> '[ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER @ 
> operations[0]]' in 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
>  
> Stack trace: #0 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
>  
> ReflectionClass->newInstanceArgs(Array) #1 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(165):
>  
> Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...', 
> '[ManagedCustome...') #2 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(130):
>  
> Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
>  
> #3 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201708/mcm/ManagedCus

Re: Error Handling in new Adwords API v201708

2017-10-16 Thread MWA
Hi Jude,
Thank you for replying.

But the problem is we download our client's data and sometimes our client 
revoke access and we haven't fully updated that into our system and while 
we download data like this.

// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
// Construct an API session configured from a properties file and 
the OAuth2 credentials above.
$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->withClientCustomerId($customerid)->build();

$adWordsServices=new AdWordsServices();


The error occurs, 

*Fatal error*:  Uncaught exception 
'Google\AdsApi\AdWords\v201708\cm\ApiException' with message 
'[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']'
 in 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/
Common/Util/Reflection.php:39
Stack trace:
#0 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/
Common/Util/Reflection.php(39):
 ReflectionClass->newInstanceArgs(Array)
#1 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/
Common/AdsSoapClient.php(165):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...',
 '[AuthorizationE...')
#2 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/
Common/AdsSoapClient.php(130):
 
Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(
SoapFault))
#3 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/
AdWords/v201708/cm/CampaignService.php(158):
 Google\AdsApi\Common\AdsSoapClient->__soapCall('get', Array)
#4 /var/www/adwords_api/Ge in 
*/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php*
 
on line *39*


Can we catch this error somehow, so that other clients don't get effected?

Thanks.

On Friday, October 13, 2017 at 5:57:07 PM UTC+5, MWA wrote:
>
> Hi,
> Can anyone tell me how to handle errors on new Adwords API v201708?
> Here is my code, I can not catch exception I've tried these possibilities.
> My code is working fine but if there is an error I want to handle it.
>
> Code:
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
> 
> $session = (new 
> AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->enablePartialFailure()->build();
>
> $adWordsServices=new AdWordsServices();
> 
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
> $link = new ManagedCustomerLink();
> $link->setManagerCustomerId($managerid);
> $link->setClientCustomerId($customerid);
> $link->setLinkStatus(LinkStatus::PENDING);
>
> $linkop = new LinkOperation();
> $linkop->setOperator(Operator::ADD);
> $linkop->setOperand($link);
>
> $operations = array($linkop);
> 
> try{
> $result = $managedCustomerService->mutateLink($operations);
> }catch(AdwordsApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(Exception $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }catch(ApiException $e){
> print_r($e);
> print_r($result->getPartialFailureErrors());
> 
> }
>
> Error:
>
> *Fatal error*: Uncaught exception 
> 'Google\AdsApi\AdWords\v201708\cm\ApiException' with message 
> '[ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER @ 
> operations[0]]' in 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
>  
> Stack trace: #0 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
>  
> ReflectionClass->newInstanceArgs(Array) #1 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(165):
>  
> Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...', 
> '[ManagedCustome...') #2 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(130):
>  
> Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
>  
> #3 
> /var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201708/mcm/ManagedCustomerService.php(185):
>  
> Google\AdsApi\Common\AdsSoapClient->__soapCall('mutateLink', Array in 
> */var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php*
>  
> on line *39*
>
>
>
> Thanks.
>

-- 
-

Re: how can i get customer client id which is linked my MCC account using adwords api ????

2017-10-13 Thread MWA
Hi n,

When getting account under your manager accounts you don't need to add

->withClientCustomerId('xxx-xxx-xxx') // this is my manager 
account id

Try without it. use this function only when you want to access your 
customers data. currently you want to access your data, that's why it's not 
working.

On Saturday, August 19, 2017 at 2:40:12 PM UTC+5, n wrote:
>
> Hi, 
>
>   I have standard access but, I can't get AdWords report data 
> using my MCC account *customer_id*so, how I can get customer client 
> report using its *customer_id *AdWords API
>
>
>   when I use my MCC account customer_id I can't get data. and 
> when I use another production account customer_id gives same data for all 
> customer.
>
>  
>
>   I need different report for different customer *client_id*.  *I 
> want to create report same as report garden.*
>
> 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/364797a6-ff2a-41f5-a09a-0e1df4394449%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot link Manager and customer account using mutateLink

2017-10-13 Thread MWA

Use this code:
$link = new ManagedCustomerLink();
$link->setManagerCustomerId($managerid);
$link->setClientCustomerId($customerid);
$link->setLinkStatus(LinkStatus::PENDING);

$linkop = new LinkOperation();
$linkop->setOperator(Operator::ADD);
$linkop->setOperand($link);

$operations = array($linkop);

$result = $managedCustomerService->mutateLink($operations);



On Tuesday, October 10, 2017 at 9:26:28 PM UTC+5, Amrender kumar wrote:
>
>
> Hi guys,
> In one of my projects, I am trying to link a Manager account with a 
> customer (My account) account but it throws following error:
> Fatal error: Uncaught exception 
> 'Google\AdsApi\AdWords\v201705\cm\ApiException' with message 
> '[ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]]
>
> I have manager account id 9663159860 and customerId 6694378287. In the 
> first step, I am taking refresh token by following oauth2 steps and getting 
> the customer ID. After that, I am passing the customerID in 
> ManagedCustomerLink object but when I try to use mutateLink it throws the 
> above error. Here is the code below which I have used assuming I have 
> already set the refresh token of customer in ini file.
>
> public static function runExample(AdWordsServices $adWordsServices,
> AdWordsSession $session) {
> //$campaignService = $adWordsServices->get($session, 
> CampaignService::class);
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
> $customer = new ManagedCustomerLink();
> $customer->setManagerCustomerId("9663159860");
> $customer->setClientCustomerId("6694378287");
> $customer->setLinkStatus("PENDING");
>  
>
> // Create operation.
> $operation = new LinkOperation();
> $operation->setOperand($customer); 
> $operation->setOperator("ADD"); 
>
>  
> //$operation->OperationType = $OperationType;
>
> $operations = array($operation);
>
> echo '';
> print_r($operations);
>
> // Make the mutate request.
> $result = $managedCustomerService->mutateLink($operations);
>
> print_r($result);
> exit;
> }
>
> I would appreciate anyone's help as I am stuck for several hours here.
>
>
> Thanks,
> Amrender
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/35505b13-b5fb-43e6-a293-58e6821eefac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error Handling in new Adwords API v201708

2017-10-13 Thread MWA
Hi,
Can anyone tell me how to handle errors on new Adwords API v201708?
Here is my code, I can not catch exception I've tried these possibilities.
My code is working fine but if there is an error I want to handle it.

Code:
$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();

$session = (new 
AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->enablePartialFailure()->build();

$adWordsServices=new AdWordsServices();

$managedCustomerService = $adWordsServices->get($session, 
ManagedCustomerService::class);

$link = new ManagedCustomerLink();
$link->setManagerCustomerId($managerid);
$link->setClientCustomerId($customerid);
$link->setLinkStatus(LinkStatus::PENDING);

$linkop = new LinkOperation();
$linkop->setOperator(Operator::ADD);
$linkop->setOperand($link);

$operations = array($linkop);

try{
$result = $managedCustomerService->mutateLink($operations);
}catch(AdwordsApiException $e){
print_r($e);
print_r($result->getPartialFailureErrors());

}catch(Exception $e){
print_r($e);
print_r($result->getPartialFailureErrors());

}catch(ApiException $e){
print_r($e);
print_r($result->getPartialFailureErrors());

}

Error:

*Fatal error*: Uncaught exception 
'Google\AdsApi\AdWords\v201708\cm\ApiException' with message 
'[ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER @ 
operations[0]]' in 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
 
Stack trace: #0 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39):
 
ReflectionClass->newInstanceArgs(Array) #1 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(165):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...', 
'[ManagedCustome...') #2 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(130):
 
Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
 
#3 
/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201708/mcm/ManagedCustomerService.php(185):
 
Google\AdsApi\Common\AdsSoapClient->__soapCall('mutateLink', Array in 
*/var/www/adwords_api/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php*
 
on line *39*



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/466b263c-747c-463f-9a91-38b01c865093%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdGroupAdService is not returning all ads.

2016-09-15 Thread MWA
Hi,

I am downloading Ads details using php client library. The way I'm doing it 
is first download ads stats using awql

$reportQuery = "SELECT 
Id,AdGroupId,CampaignId,CampaignName,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,ConvertedClicks,ClickConversionRate,CostPerConvertedClick,

ViewThroughConversions,Conversions,ConversionRate,CostPerConversion,AdNetworkType1
FROM AD_PERFORMANCE_REPORT WHERE Status IN [ENABLED, PAUSED, 
DISABLED]";


And then the other detail of ad

$adGroupAdService = $user->GetService('AdGroupAdService', 
ADWORDS_LATEST_VERSION);
$selector = new Selector();




$selector->fields = array('Id','AdGroupId','BaseAdGroupId',
'BaseCampaignId','Status','DisplayUrl','AdGroupAdDisapprovalReasons',
'Headline','Description1','Description2',
'ImageCreativeName','MobileAdDescription',
'MobileAdMarkupLanguages','MobileAdMobileCarriers','MobileAdBusinessName',
'MobileAdCountryCode',
'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType',
'SourceUrl','FileSize','CreationTime','ReferenceId','TemplateId',
'TemplateAdUnionId',
'UniqueName','TemplateElementFieldName',
'TemplateElementFieldType','TemplateElementFieldText');


$selector->dateRange = new DateRange($DATE_FROM, $DATE_TO);

$page = $adGroupAdService->get($selector);

But AdGroupAdService is not returning all ad's details.


Anybody can help?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7e595b3f-b755-41d1-a4d0-3223a7393407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Differnce in Google Call Time

2016-03-19 Thread MWA

Hi,

I'm using Google Adwords CallOnly campaign with Google Call Tracking 
feature, for that I'm using Twilio's number.
It works like a visitor searches for a keyword on mobile devices, Google 
shows my Twilio number which I've provided, when a visitor clicks a 
different number shows up on dialer, this particular number forwards on my 
twilio number, after that twilio number forwards call to my mobile phone.
After that I'm downloading calls with the help of AWQL

SELECT 
> CampaignId,AdGroupId,AdGroupName,AdGroupStatus,CampaignName,CampaignStatus,CallDuration,CallStartTime,CallEndTime,CallerCountryCallingCode,
>   
> CallStatus,CallType,AccountCurrencyCode,AccountDescriptiveName,AccountTimeZoneId,CustomerDescriptiveName,PrimaryCompanyName,Date,DayOfWeek
>   FROM CALL_METRICS_CALL_DETAILS_REPORT WHERE CampaignStatus IN 
> [ENABLED, PAUSED]
>
  
the problem is that, google api is provideing call start time some minutes 
before the actual time when the call is placed. e.g I'm testing, and making 
call on let's say 2016-03-16 03:30:00, twilio tells the actual time but 
google api says 2016-03-16 03:00:00, sometime the difference is around 30 
minutes, sometime it is around 45 minutes.

Timezone of Google and Twilio accounts are same, and I'm also considering 
daylight saving time.

Please help me is it possible or I'm doing wrong something.

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/9abac1d0-e2be-4895-a330-8ce9d6856f57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to download Customized Reports from Adwords via API?

2016-03-04 Thread MWA


Hi,

 

I have created a custom report in Reports menu of Adwords Account. I want 
to know is it possible to download this report via Adwords API?

 

Thank you in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cb867e01-f1cd-491d-ac29-ae60a7012c6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ManagedCustomerService gives An AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED Error

2015-04-21 Thread MWA
I am using PHP client library. I assume you are talking about auth.ini and 
section

; Uncomment to make requests against a client account.
; clientId = INSERT_CLIENT_CUSTOMER_ID_HERE

I have a question do I have to change it every time I download adwords data 
of a client? And this is my client's customerId not mine agency ID.
I have some client and I download their reports and also check that either 
they have accepted request or not.

Please guide me through this.

On Thursday, April 9, 2015 at 11:59:48 AM UTC+5, Aswini wrote:

 Hi 

 I got CLIENT_CUSTOMER_ID_IS_REQUIRED Error  Error ManagedCustomerService 
 in .net Client library. please check the code below 

 ManagedCustomerService managedCustomerService = 
 (ManagedCustomerService)user.GetService(
   AdWordsService.v201409.ManagedCustomerService);

 // Create selector.
 Selector selector = new Selector();  
 selector.fields = new String[] { CustomerId, Name };
 try
 {
 ManagedCustomerPage page = 
 managedCustomerService.get(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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e1075241-0bf9-4c9f-966f-5260020c399e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ManagedCustomerService gives An AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED Error

2015-04-21 Thread MWA
Thank you very much it worked. After I set clientCustomerId to my MCC Id in 
auth.ini


On Thursday, April 9, 2015 at 11:59:48 AM UTC+5, Aswini wrote:

 Hi 

 I got CLIENT_CUSTOMER_ID_IS_REQUIRED Error  Error ManagedCustomerService 
 in .net Client library. please check the code below 

 ManagedCustomerService managedCustomerService = 
 (ManagedCustomerService)user.GetService(
   AdWordsService.v201409.ManagedCustomerService);

 // Create selector.
 Selector selector = new Selector();  
 selector.fields = new String[] { CustomerId, Name };
 try
 {
 ManagedCustomerPage page = 
 managedCustomerService.get(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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a3b6d85f-d39e-40d7-a9a1-c8d84cf11e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ManagedCustomerService gives An AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED Error

2015-04-20 Thread MWA
Hi
I have a same problem in and I'm using PHP. I cannot figure out the problem.

My code is same as here
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201502/AccountManagement/GetAccountHierarchy.php

$user = new AdWordsUser();
$user-LogDefaults();

// Get the CampaignService.
$managedCustomerService = $user-GetService('ManagedCustomerService', 
ADWORDS_LATEST_VERSION);

// Create selector.
$selector = new Selector();
$selector-fields = array('CustomerId', 'Name');


$graph = $managedCustomerService-get($selector);

print_r($graph)

Still same error
[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'

I have agency MCC account and I and checking to my client has accepted my 
invitation or not. If there is any better way to do this please let me know.

Thanks.



On Thursday, April 9, 2015 at 11:59:48 AM UTC+5, Aswini wrote:

 Hi 

 I got CLIENT_CUSTOMER_ID_IS_REQUIRED Error  Error ManagedCustomerService 
 in .net Client library. please check the code below 

 ManagedCustomerService managedCustomerService = 
 (ManagedCustomerService)user.GetService(
   AdWordsService.v201409.ManagedCustomerService);

 // Create selector.
 Selector selector = new Selector();  
 selector.fields = new String[] { CustomerId, Name };
 try
 {
 ManagedCustomerPage page = 
 managedCustomerService.get(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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/50bdbc35-dba8-4dee-9d28-2439b9a7533a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread MWA
Does not anybody face this issue so far? 

On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:


 Hi,

 I am trying to retreive Ads data from adwords API v201406.

 I am getting stats like this

 $reportQuery = SELECT 
 AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,

 ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
 FROM AD_PERFORMANCE_REPORT;

 $reportQuery .=  DURING  . $dateRange;

 $options = array('version' = ADWORDS_LATEST_VERSION);

 $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
 $reportFormat, $options);



 Then I am converting $stats into array format $statsArray and then 
 collecting all AdIds. After that I am trying to retrieve other data from 
 AdGroupAdService using code below. $adIds have all the AdIds parsed from 
 $statsArray.

 $adGroupAdService = $user-GetService('AdGroupAdService', 
 ADWORDS_LATEST_VERSION);

 $selector = new Selector();

 $selector-fields = array('Id','AdGroupId','Status','DisplayUrl',
 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl'
 ,'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId',
 'UniqueName','TemplateElementFieldName','TemplateElementFieldType',
 'TemplateElementFieldText');

 $selector-predicates[] = new Predicate('Id', 'IN', $adIds);

 $page = $adGroupAdService-get($selector);



 The problem is $stat is providing 680 unique Ads data, and I am sending 
 these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
 is providing only 480 records.

 I have also tried to retrive data by sending actual AdIds which are 
 present in $statsArray but not present in $page but no result.

 $selector-predicates[] = new Predicate('Id', 'IN', $adIds);



 And I have also tried to retrive data by sending AdGroupId of the 
 particular AdId which are present in $statsArray but not present in $page 
 still no result.


 $selector-predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);



 Please Help me.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread MWA
First of all Thank you for replying.

No. There is no Shared Ads.

Shared library  Ads says:
You haven't created any shared ads yet. Click + List above to get started.

On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:


 Hi,

 I am trying to retreive Ads data from adwords API v201406.

 I am getting stats like this

 $reportQuery = SELECT 
 AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,

 ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
 FROM AD_PERFORMANCE_REPORT;

 $reportQuery .=  DURING  . $dateRange;

 $options = array('version' = ADWORDS_LATEST_VERSION);

 $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
 $reportFormat, $options);



 Then I am converting $stats into array format $statsArray and then 
 collecting all AdIds. After that I am trying to retrieve other data from 
 AdGroupAdService using code below. $adIds have all the AdIds parsed from 
 $statsArray.

 $adGroupAdService = $user-GetService('AdGroupAdService', 
 ADWORDS_LATEST_VERSION);

 $selector = new Selector();

 $selector-fields = array('Id','AdGroupId','Status','DisplayUrl',
 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl'
 ,'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId',
 'UniqueName','TemplateElementFieldName','TemplateElementFieldType',
 'TemplateElementFieldText');

 $selector-predicates[] = new Predicate('Id', 'IN', $adIds);

 $page = $adGroupAdService-get($selector);



 The problem is $stat is providing 680 unique Ads data, and I am sending 
 these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
 is providing only 480 records.

 I have also tried to retrive data by sending actual AdIds which are 
 present in $statsArray but not present in $page but no result.

 $selector-predicates[] = new Predicate('Id', 'IN', $adIds);



 And I have also tried to retrive data by sending AdGroupId of the 
 particular AdId which are present in $statsArray but not present in $page 
 still no result.


 $selector-predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);



 Please Help me.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


AdGroupAdService not providing all Ads - v201406

2014-07-18 Thread MWA

Hi,

I am trying to retreive Ads data from adwords API v201406.

I am getting stats like this

$reportQuery = SELECT 
AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
FROM AD_PERFORMANCE_REPORT;

$reportQuery .=  DURING  . $dateRange;

$options = array('version' = ADWORDS_LATEST_VERSION);

$stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
$reportFormat, $options);



Then I am converting $stats into array format $statsArray and then 
collecting all AdIds. After that I am trying to retrieve other data from 
AdGroupAdService using code below. $adIds have all the AdIds parsed from 
$statsArray.

$adGroupAdService = $user-GetService('AdGroupAdService', 
ADWORDS_LATEST_VERSION);

$selector = new Selector();

$selector-fields = array('Id','AdGroupId','Status','DisplayUrl',
'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl',
'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId',
'UniqueName','TemplateElementFieldName','TemplateElementFieldType',
'TemplateElementFieldText');

$selector-predicates[] = new Predicate('Id', 'IN', $adIds);

$page = $adGroupAdService-get($selector);



The problem is $stat is providing 680 unique Ads data, and I am sending 
these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
is providing only 480 records.

I have also tried to retrive data by sending actual AdIds which are present 
in $statsArray but not present in $page but no result.

$selector-predicates[] = new Predicate('Id', 'IN', $adIds);



And I have also tried to retrive data by sending AdGroupId of the 
particular AdId which are present in $statsArray but not present in $page 
still no result.


$selector-predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);



Please Help me.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Download Adwords Express Account Data

2014-05-22 Thread MWA
Here is a full query


SELECT 
AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId,CampaignId,
MaxCpc,MaxCpm,KeywordText 
FROM KEYWORDS_PERFORMANCE_REPORT
WHERE Impressions 0 
DURING 20140515,20140515 
LIMIT 0,5000


On Wednesday, May 21, 2014 6:17:11 PM UTC+5, MWA wrote:

 Hi

 I am downloading Adwords data through API of an dwords Express Account. I 
 have some problems


 CAMPAIGN_PERFORMANCE_REPORT gives me extra campaigns like
 AWX_002:683f14cedc4ea0c0_0001aeb3_content


 And

 KEYWORDS_PERFORMANCE_REPORT is not providing me all keywords. Adwords 
 interface shows clicks on a specific keywords but API is not giving me that 
 data.


 here is a query


 SELECT AveragePosition,AverageCpc,AverageCpm,Impressions,

 Clicks,Cost,Ctr,Conversions,

 ConversionRate,CostPerConversion,ViewThroughConversions,ConversionsManyPerClick,

 ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId,CampaignId,
 MaxCpc,MaxCpm,KeywordText 
 FROM KEYWORDS_PERFORMANCE_REPORT


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Download Adwords Express Account Data

2014-05-21 Thread MWA
Hi

I am downloading Adwords data through API of an dwords Express Account. I 
have some problems


CAMPAIGN_PERFORMANCE_REPORT gives me extra campaigns like
AWX_002:683f14cedc4ea0c0_0001aeb3_content


And

KEYWORDS_PERFORMANCE_REPORT is not providing me all keywords. Adwords 
interface shows clicks on a specific keywords but API is not giving me that 
data.


here is a query


SELECT AveragePosition,AverageCpc,AverageCpm,Impressions,

Clicks,Cost,Ctr,Conversions,
ConversionRate,CostPerConversion,ViewThroughConversions,ConversionsManyPerClick,
ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId,CampaignId,
MaxCpc,MaxCpm,KeywordText 
FROM KEYWORDS_PERFORMANCE_REPORT

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Error Fetching http body, No Content-Length, connection closed or chunked data - Adwords API Data Download

2014-03-21 Thread MWA
Hi,

I'm trying to download reports data in a client account but I get the 
following error:



SoapFault Object
 (
 [message:protected] = Error Fetching http body, No Content-Length, 
 connection closed or chunked data
 [string:Exception:private] = 
 [code:protected] = 0
 [file:protected] = /var/www/adwords_api/src/

 Google/Api/Ads/Common/Lib/AdsSoapClient.php
 [line:protected] = 194
 [trace:Exception:private] = Array
 (
   [0] = Array
 (
 [file] = 
 /var/www/adwords_api/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php
 [line] = 194
 [function] = __doRequest
 [class] = SoapClient
 [type] = -
 [args] = Array
 (
 [0] = ?xml version=1.0 encoding=UTF-8?
 [1] = 
 https://adwords.google.com/api/adwords/cm/v201306/CampaignService
 [2] = 
 [3] = 1
 )

 )

 Everything was working fine till yesterday. I am using *Adwords Api 
Version:* v201306 with *Apache Version:* Apache/2.2.20 (Ubuntu) and *PHP 
Version* 5.3.6-13ubuntu3.8 
Does anybody know how to fix this? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with fetching data for a particular date (Cron job PHP v201309)

2013-12-30 Thread MWA
I am using this to Get campaign stats like Clicks, Conversions, 
Impressions etc

$campaignService = $user-GetService('CampaignService', ADWORDS_VERSION);

On Thursday, December 26, 2013 1:26:52 PM UTC+5, Danial Klimkin wrote:

 Hello MWA,


 What is the report type you are running?


 -Danial, AdWords API Team.

 On Tuesday, December 24, 2013 9:42:51 PM UTC+4, MWA wrote:

 Hi There,

 I have been using v201306 recently, but now when i am going to migrate to 
 version v201309, one of the cron jobs that makes use of conversions data 
 (for a particular date) is returning error:

 if i change my version to v201309

   define('ADWORDS_VERSION', 'v201309'); 

 it gives the following error in selector fields


 *SoapFault Object
 (
 [message:protected] = [SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'Clicks', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'Impressions', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'Cost', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'AveragePosition', SelectorError.INVALID_FIELD_NAME 
 @ serviceSelector; trigger:'AverageCpc', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'AverageCpm', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'Ctr', SelectorError.INVALID_FIELD_NAME @ 
 serviceSelector; trigger:'Conversions']
   
 ==
  *

 *  Following are my selector feilds:*

   $selector-fields = array('Id','KeywordText', 
 'KeywordMatchType','PlacementUrl','Status','SystemServingStatus','ApprovalStatus','DestinationUrl','FirstPageCpc','IsKeywordAdRelevanceAcceptable','IsLandingPageLatencyAcceptable','IsLandingPageQualityAcceptable','QualityScore','CpcBidSource','CpmBidSource','Clicks','Impressions','Cost','AveragePosition','AverageCpc','AverageCpm','Ctr','Conversions','EnhancedCpcEnabled','CpcBid','CpmBid');


 With v201306 it runs fine, What should I do now?




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Downloading reporting data for an specific date PHP v201309

2013-12-30 Thread MWA
Hi There

Any one has idea about getting Converions,Impressions,Clicks etc data for a 
given date using PHP API v201309?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Downloading reporting data for an specific date PHP v201309

2013-12-30 Thread MWA
For example if I am using CampaignService:

 $campaignService = $user-GetService('CampaignService', ADWORDS_VERSION);


On Monday, December 30, 2013 5:14:49 PM UTC+5, MWA wrote:

 Hi There

 Any one has idea about getting Converions,Impressions,Clicks etc data for 
 a given date using PHP API v201309?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PHP API version v201306 giving Error : [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API version v201302

2013-11-27 Thread MWA
Yes you are right I did the same I got it working now Finally. :)

On Tuesday, November 26, 2013 1:36:52 PM UTC+5, MWA wrote:

 Hi there,

 I am using Adwords PHP API version v201306 but why randomly I am getting 
 the following msg. What is with v201302 here when I am clearly using 
 v201306. Also the following msg appearing randomly.

 [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API 
 version v201302 that has been discontinued. Calls to this version may fail. 
 Please visit the AdWords API blog for information on migration to the new 
 AdWords API version.']

 Warm Regards


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PHP API version v201306 giving Error : [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API version v201302

2013-11-27 Thread MWA
Searched it over the web and found this solution 
http://code.google.com/p/google-api-adwords-php/issues/detail?id=115

On Tuesday, November 26, 2013 1:36:52 PM UTC+5, MWA wrote:

 Hi there,

 I am using Adwords PHP API version v201306 but why randomly I am getting 
 the following msg. What is with v201302 here when I am clearly using 
 v201306. Also the following msg appearing randomly.

 [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API 
 version v201302 that has been discontinued. Calls to this version may fail. 
 Please visit the AdWords API blog for information on migration to the new 
 AdWords API version.']

 Warm Regards


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PHP API version v201306 giving Error : [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API version v201302

2013-11-27 Thread MWA
Yes you are right mol... Searched it over the web and found this solution 
http://code.google.com/p/google-api-adwords-php/issues/detail?id=115

On Tuesday, November 26, 2013 10:09:29 PM UTC+5, mol...@knowme.net wrote:

 I have being having the same issue. I noticed that there are references to 
 the 201302 namespace in Google/Api/Ads/AdWords/v201306/BudgetService.php. 
 As a test I updated the references in this file to 201306 and it worked.

 On Tuesday, November 26, 2013 5:17:25 AM UTC-5, Danial Klimkin wrote:

 Hello,


 Please double-check your code for all instances of version number. If you 
 indeed receive this error from a v201306 call please send me full XML for 
 the request and full server response over email (reply to author button).


 -Danial, AdWords API Team.


 On Tuesday, November 26, 2013 12:36:52 PM UTC+4, MWA wrote:

 Hi there,

 I am using Adwords PHP API version v201306 but why randomly I am getting 
 the following msg. What is with v201302 here when I am clearly using 
 v201306. Also the following msg appearing randomly.

 [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords 
 API version v201302 that has been discontinued. Calls to this version may 
 fail. Please visit the AdWords API blog for information on migration to the 
 new AdWords API version.']

 Warm Regards



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


PHP API version v201306 giving Error : [RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API version v201302

2013-11-26 Thread MWA
Hi there,

I am using Adwords PHP API version v201306 but why randomly I am getting 
the following msg. What is with v201302 here when I am clearly using 
v201306. Also the following msg appearing randomly.

[RequestError.INVALID_INPUT @ ; trigger:'You are accessing an AdWords API 
version v201302 that has been discontinued. Calls to this version may fail. 
Please visit the AdWords API blog for information on migration to the new 
AdWords API version.']

Warm Regards

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Geo/Mobile Bid Formula Adords API PHP (v201306)

2013-11-05 Thread MWA
Hi there,

What I see at the interface is when it sets the mobile/Geo bid in 
percentage, say +2% makes the 'bidModifier' totally different from the one 
we are trying to set Via API,
Should I have to multiply the percentage to the maxCpc? but how to get 
cmapaign level maxCPC starting bid for as I have gone though the document, 
it is obtained on adGroup/criterion level.

 $campaignCriterionService =
  $user-GetService('CampaignCriterionService', ADWORDS_VERSION); 
 $bidModifier = $values['bidModifier'];
  
  $bidModifier = doubleval(1+($bidModifier/100));

  $id = $values['id'];

 $criterionObj = new Platform();
 $criterionObj-id = $id;
  

  $criterion = new CampaignCriterion();
  $criterion-campaignId = $campaignId;
  $criterion-criterion = $criterionObj;
  $criterion-bidModifier = +.$bidModifier.%;  

  // Create SET operation.
  $operation = new CampaignCriterionOperation();
  $operation-operator = SET;
  $operation-operand = $criterion;

  // Update campaign criteria.
  $results = $campaignCriterionService-mutate(array($operation));

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Edit Geo BId Adjustment (Required Minimum functionality) PHP v201306

2013-11-01 Thread MWA
Thanx, but it gives me an array of several Locations,

I want to know what action do i need to perform Geo Bid Adjustment  
'Required Minimum Functionality'?
What to Edit here since everything is read only?

On Monday, October 28, 2013 9:31:41 PM UTC+5, MWA wrote:

 Hi There,

 Can some one guide me how to Edit geo bid adjustment using PHP  API

 I tried using the following code but no avail, firstly I am trying to get 
 the Location Info then add/Set/Edit them.

 $user = new AdWordsUser(null,null,null,null,null,null,$adwordId);
 $user-LogDefaults();
 
 $LocationService = $user-GetService('LocationCriterionService', 
 ADWORDS_VERSION);
 
   ` $selector = new Selector();
 $selector-fields = array( LocationName, DisplayType, 
 TargetingStatus, ParentLocations);
 $selector-predicates[] = new Predicate('Id', 'IN', 
 array($criterionId));
  
 
 $data = $LocationService-get($selector);
 
 
 if(isset($data-entries))
 {
 $entries = $data-entries[0];
 $amount = $entries-bids-maxCpc-amount-microAmount;
 }
 

 unset($selector);
 echo pre; print_r($data);die;

 Also if you go through this page for Geo Bid Adjustment  'Required Minimum 
 Functionality' under Location 
 https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.Location

 all of the elements such as 'locationName', 'displayType', 
 'targetingStatus'  etc are read only, so how come I an 'Edit' those? Isn't 
 it about adding/setting up new locations?

 Warm Regards


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Edit Geo BId Adjustment (Required Minimum functionality) PHP v201306

2013-10-28 Thread MWA
Hi There,

Can some one guide me how to Edit geo bid adjustment using PHP  API

I tried using the following code but no avail, firstly I am trying to get 
the Location Info then add/Set/Edit them.

$user = new AdWordsUser(null,null,null,null,null,null,$adwordId);
$user-LogDefaults();

$LocationService = $user-GetService('LocationCriterionService', 
ADWORDS_VERSION);

  ` $selector = new Selector();
$selector-fields = array( LocationName, DisplayType, 
TargetingStatus, ParentLocations);
$selector-predicates[] = new Predicate('Id', 'IN', 
array($criterionId));
 

$data = $LocationService-get($selector);


if(isset($data-entries))
{
$entries = $data-entries[0];
$amount = $entries-bids-maxCpc-amount-microAmount;
}


unset($selector);
echo pre; print_r($data);die;

Also if you go through this page for Geo Bid Adjustment  'Required Minimum 
Functionality' under Location 
https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.Location

all of the elements such as 'locationName', 'displayType', 
'targetingStatus'  etc are read only, so how come I an 'Edit' those? Isn't 
it about adding/setting up new locations?

Warm Regards

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 201306 PHP API criterion bid changing Error

2013-10-11 Thread MWA
Ok I got it, serached the forum and found nan example in c# 

converted it in php

$biddingStrategyConfiguration = new biddingStrategyConfiguration();
$bids = new CpcBid();
$bids-bid = new Money(floatval($ary['maxCpc'])*100);

$biddingStrategyConfiguration-bids = new Bids();
$biddingStrategyConfiguration-bids = 
$biddingStrategyConfiguration-bids-BidsType; 

$biddingStrategyConfiguration-bids[0] = $bids; 

$adGroupCriterion-biddingStrategyConfiguration = 
$biddingStrategyConfiguration;
$operation = new AdGroupCriterionOperation();

$operation-operator = 'SET';
$operation-operand = $adGroupCriterion;
$operations2 = array($operation);

$result = $AdGroupCriterionService-mutate($operations2);

can anybody make sure i am doing the right thing?

On Friday, October 11, 2013 3:19:15 PM UTC+5, MWA wrote:

 Hello there, I am using the following code
 ADWORDS_VERSION = v201306
  
  $AdGroupCriterionService = $user-GetService('AdGroupCriterionService', 
 ADWORDS_VERSION); 
 //$bids = new ManualCPCAdGroupCriterionBids();
 //$bids = $user-GetService('BiddingStrategyService', 
 ADWORDS_VERSION);
 $adGroupCriterion = new BiddableAdGroupCriterion();
 $adGroupCriterion-adGroupId = $adGroupId;
 $adGroupCriterion-criterion = new Criterion($ary['criterionId']);
 
 $bids = new CpcBid();
 
 
 $bids-bid = new Bid(new Money(floatval($ary['maxCpc'])*100));
 //echo pre; print_r($bids);die;
 $biddingStrategyConfiguration = new biddingStrategyConfiguration();
 
 $biddingStrategyConfiguration-bids = $bids; 
 
 $adGroupCriterion-biddingStrategyConfiguration = 
 $biddingStrategyConfiguration;
 
 //echo pre; print_r($adGroupCriterion);die;
 $operation = new AdGroupCriterionOperation();
 
 $operation-operand = $adGroupCriterion;
 $operation-operator = 'SET';
 
 $operations2 = array($operation);
 $result = $AdGroupCriterionService-mutate($operations2);

 getting the following error : *An error has occurred: Unmarshalling 
 Error: cvc-elt.4.3: Type 'ns1:Bid' is not validly derived from the type 
 definition, 'Money', of element 'ns1:bid'. *


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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How much time it requires to approve Standard Access Application?

2013-08-31 Thread MWA
Hi,

Thank you for reply.

I am fetching data like this

$adGroupService = $user-GetService('AdGroupService', 'v201306');
$selector = new Selector();
$selector-fields = array('Id', 
'Name','CampaignId','CampaignName','Status');

And I think I was supposed to enter Field Names from
https://developers.google.com/adwords/api/docs/appendix/selectorfields

I found AveragePosition in the list but couldn't find AdNetworkType1, 
AdNetworkType2, ClickType in selector fields.

How should I do that?

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How much time it requires to approve Standard Access Application?

2013-08-30 Thread MWA
Hi,

I received a replay saying
RMFs are missing (i.e. R.242, R.246, R.310, R.342, R.346, R.510, etc).

R.242Campaign (Report)Ad Network
R.246Campaign (Report)ClickType

R.310Ad Group (Report)Avg Position
R.342Ad Group (Report)Ad Network
R.346Ad Group (Report)ClickType

R.510Keyword (Report)Avg Position

Avg Position can be retrieved by 'AveragePosition', But I don't know how do 
I retrieve 'Ad Network' and 'ClickType' of AdGroup and Campaign.

Please Help...



On Wednesday, July 10, 2013 2:26:15 PM UTC+5, MWA wrote:

 Hi,

 About a month ago (on 12 jun 2013) I applied for Standard Access and I did 
 not get any response to my application.

 Is there a review process and how long does it take to get the review 
 result?

 I also contacted at adwordsapi-tok...@google.com and no reply. Should I 
 re-apply or wait?


 Regards,


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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How much time it requires to approve Standard Access Application?

2013-07-15 Thread MWA
Hi,

I had posted my customer id but since (probably for security reasons) it 
did not appear, I also PM'ed you the customer id. My company is relying on 
me to get this worked out and I am very worried because client data is 
getting backlogged and we stand to lose clients. Can you please help 
resolve this? Thanks so much!


On Wednesday, July 10, 2013 2:26:15 PM UTC+5, MWA wrote:

 Hi,

 About a month ago (on 12 jun 2013) I applied for Standard Access and I did 
 not get any response to my application.

 Is there a review process and how long does it take to get the review 
 result?

 I also contacted at adwordsapi-tok...@google.com and no reply. Should I 
 re-apply or wait?


 Regards,


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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How much time it requires to approve Standard Access Application?

2013-07-15 Thread MWA
Hi,

Customer ID: 669-819-9072

I had posted my customer id but since (probably for security reasons) it 
did not appear, I also PM'ed you the customer id. My company is relying on 
me to get this worked out and I am very worried because client data is 
getting backlogged and we stand to lose clients. Can you please help 
resolve this? Thanks so much!



On Wednesday, July 10, 2013 2:26:15 PM UTC+5, MWA wrote:

 Hi,

 About a month ago (on 12 jun 2013) I applied for Standard Access and I did 
 not get any response to my application.

 Is there a review process and how long does it take to get the review 
 result?

 I also contacted at adwordsapi-tok...@google.com and no reply. Should I 
 re-apply or wait?


 Regards,


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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




How much time it requires to approve Standard Access Application?

2013-07-10 Thread MWA
Hi,

About a month ago (on 12 jun 2013) I applied for Standard Access and I did 
not get any response to my application.

Is there a review process and how long does it take to get the review 
result?

I also contacted at adwordsapi-tok...@google.com and no reply. Should I 
re-apply or wait?


Regards,

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




File Not found - Google/Api/Ads/Common/Util/Logger.php

2013-07-08 Thread MWA
Hi,

I'm trying to get campaign and php returns error

*Warning*: require_once(Google/Api/Ads/Common/Util/Logger.php) [
function.require-oncehttp://avidtrak2.com/adwords_api/function.require-once]: 
failed to open stream: No such file or directory in *
/home/public_html/adwords_api/src/Google/Api/Ads/Common/Lib/AdsUser.php* on 
line *27*

*Fatal error*: require_once() 
[function.requirehttp://avidtrak2.com/adwords_api/function.require]: 
Failed opening required 'Google/Api/Ads/Common/Util/Logger.php' 
(include_path='.:/usr/lib/php:/usr/local/lib/php:/home/public_html/adwords_api/../../src')
 
in */home/public_html/adwords_api/src/Google/Api/Ads/Common/Lib/AdsUser.php*on 
line 
*27*

I have verified that this Google/Api/Ads/Common/Util/Logger.php file 
exists. I have uploaded fresh copy of v201302 php client.


Please help.

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




How to send invitation using API

2012-11-13 Thread MWA
Hi,

I want to automate the procedure to link adwords account to my MCC account.

Please tell me is there any way to do it?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: campaignStats object returning blank values

2012-03-14 Thread MWA
Anybody here to help me


On Tuesday, March 13, 2012 8:42:07 PM UTC+5, MWA wrote:



 Hi,

 I'm trying to get clients data but campaignStats object returning blank 
 values.

 My resulting array is as follows

 I'm using v201109 PHP Client Library.

 [0] = Campaign Object
 (
 [id] = CampaignID
 [name] = CampaignName
 [status] = 
 [servingStatus] = 
 [startDate] = 
 [endDate] = 
 [budget] = 
 [biddingStrategy] = 
 [conversionOptimizerEligibility] = ConversionOptimizerEligibility 
 Object
 (
 [eligible] = 
 [rejectionReasons] = Array
 (
 [0] = NOT_CPC_CAMPAIGN
 [1] = CAMPAIGN_IS_NOT_ACTIVE
 [2] = CONVERSION_TRACKING_NOT_ENABLED
 )

 )

 [campaignStats] = CampaignStats Object
 (
 [startDate] = 20120312
 [endDate] = 20120313
 [network] = ALL
 [clicks] = 
 [impressions] = 
 [cost] = 
 [averagePosition] = 
 [averageCpc] = 
 [averageCpm] = 
 [ctr] = 
 [conversions] = 
 [conversionRate] = 
 [costPerConversion] = 
 [conversionsManyPerClick] = 
 [conversionRateManyPerClick] = 
 [costPerConversionManyPerClick] = 
 [viewThroughConversions] = 
 [totalConvValue] = 
 [valuePerConv] = 
 [valuePerConvManyPerClick] = 
 [invalidClicks] = 
 [invalidClickRate] = 
 [numCalls] = 
 [numMissedCalls] = 
 [numReceivedCalls] = 
 [callDurationSecs] = 
 [avgCallDurationSecs] = 
 [StatsType] = CampaignStats
 [_parameterMap:private] = Array
 (
 [Stats.Type] = StatsType
 )

 )

 [adServingOptimizationStatus] = 
 [frequencyCap] = FrequencyCap Object
 (
 [impressions] = 0
 [timeUnit] = 
 [level] = 
 )

 [settings] = 
 [networkSetting] = 
 )


 And Code is:

 $user = new AdWordsUser(null,null,null,null,null,null,$customerid);
 $user-LogDefaults();

 $campaignService = $user-GetService('CampaignService', 'v201109');

 $selector = new Selector();
 $selector-fields = array('Id', 'Name');
 $selector-ordering[] = new OrderBy('Name', 'ASCENDING');
 $selector-paging = new Paging(0, PAGE_SIZE);
 $selector-dateRange = new DateRange($DATE_FROM, $DATE_TO);

 $page = $campaignService-get($selector);

 print_r($page);


 Please help.


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Campaign stats are NULL

2012-03-14 Thread MWA
*@**AdWords API Advisor*
Please help me. URL of my question is given below.

https://groups.google.com/forum/?hl=enfromgroups#!topic/adwords-api/L0YGEE5Jiso

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