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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
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 [email protected].
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.