You are accessing an AdWords API version v201806 that has been discontinued

2020-01-24 Thread Bonge LaBwana
Hi all

I am using 
https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWords/LaravelSampleApp

for testing adwords api

Now I am getting the following error

[RequestError.UNSUPPORTED_VERSION @ ; trigger:'You are accessing an AdWords 
API version v201806 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.']

What do I need to do to solve the problem?

Thanks
Bonge

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f656909c-eb47-4a89-900c-34fc1e28683b%40googlegroups.com.


Granting Access to a Google Ads Account

2020-01-23 Thread Bonge LaBwana
Hi

I would like to connect users with google ads using Google AdWords API

How can I do that using google login auth? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8e9bc4d2-238d-4bb6-88cc-ea8a2f1aa0ab%40googlegroups.com.


How to Create user authentication for google adwords?

2020-01-23 Thread Bonge LaBwana
Hi

I have followed all process on google Adwords integration on the local 
machine now 
- I can create a campaign
-Display campaign
-I can create display ad 
-etc

Now I have created user interface in fronted with mockups, 

So I would like to create User authentication for a user to be able to 
connect with google Adwords using API

Can someone please provide a detailed tutorial or sample working demo on 
the web??

Thanks
Geofrey Zellah

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/18d2c247-39ea-4ea0-a4ba-8f1ee2db56ec%40googlegroups.com.


[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError

2020-01-17 Thread Bonge LaBwana


Hi 

I am creating display ad with video using google adwords api using PHP,

I amable to upload images , text, logo now I want to be able to upload 
youtube video via google adwords api .


Here is my php script 



http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

namespace Google\AdsApi\Examples\AdWords\v201809\AdvancedOperations;

require __DIR__ . '/../../../../vendor/autoload.php';

use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAd;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAdOperation;
use Google\AdsApi\AdWords\v201809\cm\AdGroupAdService;
use Google\AdsApi\AdWords\v201809\cm\AssetLink;
use Google\AdsApi\AdWords\v201809\cm\AssetOperation;
use Google\AdsApi\AdWords\v201809\cm\AssetService;
use Google\AdsApi\AdWords\v201809\cm\Video;
use Google\AdsApi\AdWords\v201809\cm\DisplayAdFormatSetting;
use Google\AdsApi\AdWords\v201809\cm\ImageAsset;
use Google\AdsApi\AdWords\v201809\cm\MultiAssetResponsiveDisplayAd;
use Google\AdsApi\AdWords\v201809\cm\Operator;
use Google\AdsApi\AdWords\v201809\cm\TextAsset;
use Google\AdsApi\Common\OAuth2TokenBuilder;
use Google\AdsApi\AdWords\v201809\cm\YouTubeVideo;
use Google\AdsApi\AdWords\v201809\cm\YouTubeVideoAsset;

/**
 * This code example adds a multi-asset responsive display ad
 * (MultiAssetResponsiveDisplayAd) to an ad group. Image assets are uploaded
 * using AssetService. To get ad groups, run GetAdGroups.php.
 */
class AddMultiAssetResponsiveDisplayAd
{

const AD_GROUP_ID = '92385624652';

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

$assetService = $adWordsServices->get($session, AssetService::class
);
$adGroupAdService =
$adWordsServices->get($session, AdGroupAdService::class);

// Create a multi-asset responsive display ad.
$multiAssetResponsiveDisplayAd = new MultiAssetResponsiveDisplayAd
();
$headlineTextAsset1 = new TextAsset();
$headlineTextAsset1->setAssetText('Travel to Africa');
$headlineTextAsset2 = new TextAsset();
$headlineTextAsset2->setAssetText('Travel to Tanzania');
$headlineTextAsset3 = new TextAsset();
$headlineTextAsset3->setAssetText('Travel to Poland');
// Text assets can be specified directly in the asset field when
// creating the ad.
$multiAssetResponsiveDisplayAd->setHeadlines([
new AssetLink($headlineTextAsset1),
new AssetLink($headlineTextAsset2),
new AssetLink($headlineTextAsset3)
]);

// Set business name and long headline.
$multiAssetResponsiveDisplayAd->setBusinessName(
'VideommerceLuxury Cruises'
);
$longHeadlineTextAsset = new TextAsset();
$longHeadlineTextAsset->setAssetText(
'Visit the AFrica in a luxury spaceship.'
);
$multiAssetResponsiveDisplayAd->setLongHeadline(
new AssetLink($longHeadlineTextAsset)
);

// Set description.
$descriptionTextAsset1 = new TextAsset();
$descriptionTextAsset1->setAssetText(
'Visit the planet in a luxury spaceship.'
);
$descriptionTextAsset2 = new TextAsset();
$descriptionTextAsset2->setAssetText('See the AFRICA in style.');
$multiAssetResponsiveDisplayAd->setDescriptions([
new AssetLink($descriptionTextAsset1),
new AssetLink($descriptionTextAsset2)
]);

// Set a marketing image.
$marketingImageAsset = new ImageAsset();
// This ad format does not allow the creation of an image asset by
// setting the Asset.imageData field. An image asset must first be

// created using the AssetService, and Asset.assetId must be populated
// when creating the ad.
$marketingImageAsset->setAssetId(
self::uploadImageAsset($assetService, 
'http://wp-iframe.videomill.co/travel.jpg')
);
$multiAssetResponsiveDisplayAd->setMarketingImages([
new AssetLink(
$marketingImageAsset
)
]);

// Set a square image.
$squareImageAsset = new ImageAsset();
$squareImageAsset->setAssetId(
self::uploadImageAsset($assetService, 
'https://wp-iframe.videomill.co/square.png')
);
$multiAssetResponsiveDisplayAd->setSquareMarketingImages([
new AssetLink(
$squareImageAsset
)
]);


Create a responsive display ad with a video

2020-01-14 Thread Bonge LaBwana
Hi

I would like to create a responsive display ad with video eg from youtube
or normal mp4

1. Is this possible? if Yes can you please provide me a working example?

Thanks
Geoffrey zellah

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2B6uKPOVJKxyoc8KAS_rm_6Ys10qf%2BE4aae-fnRunjNFd%3DH9dQ%40mail.gmail.com.


Re: ImageError.INVALID_IMAGE

2020-01-13 Thread Bonge LaBwana
Hi, 

I solved the problem by myself, 

now I am able to add display add with images, logo and text, 

But I need also to upload a video to display ad, 

is it possible to upload a video to display ads by using AdWords API?  if 
yes can you please provide me a working example?

Thanks 
Bonge

On Friday, 10 January 2020 20:51:06 UTC+1, adsapiforumadvisor wrote:
>
> Hi Bonge,
>
> Thank you for reaching out. Can you please share the complete detailed 
> request and response logs *via reply privately to author *so that I can 
> further investigate the issue? You can find information on enabling logging 
> here .
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001USw3HS:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e8a01e7f-afc1-4e8d-a25d-fd242ce90904%40googlegroups.com.


ImageError.INVALID_IMAGE

2020-01-10 Thread Bonge LaBwana


Hi 


I am creating display ad using google adwords api 


Here is script am using to create AddResponsiveDisplayAd : 
https://wp-iframe.videomill.co/AddResponsiveDisplayAd.php.txt


Now when I run script : php examples/AdWords/v201809/BasicOperations/
AddResponsiveDisplayAd 
.php


PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
[ImageError.INVALID_IMAGE @ media[0].data] in 
C:\xampp\htdocs\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:43


I am using example from google : 
https://developers.google.com/adwords/api/docs/guides/responsive-ads


What do I need to do to solve the problem ???


Thanks

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

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